Hi,
You did not define your segment inside of the MyModel folder that is being included later in MyStudy, and, hence, the analysis is not aware of this particular segment.
It creates a situation when you provided a driver (1dof), but no segment. This is why the system gives an over-constrained error.
BUT! If you include this object like this:
// The actual body model goes in this folder
AnyFolder MyModel = {
#include "Model/seat_pan.any"
// Global Reference Frame
AnyFixedRefFrame GlobalRef = {
AnyRefNode basenode ={};
#include "Model\Environment.any"
}; // Global reference frame
}; // MyModel
// The study: Operations to be performed on the model
AnyBodyStudy MyStudy = {
AnyFolder &Model = .MyModel;
...
};
This will create a situation, where the system is underconstrained. Because you created a single driver for 1 dof, but out-commented constraints for all other degrees of freedom. You need to provide another 5 constraints.
One way to do it is like this:
AnyKinEqSimpleDriver AnkleLinDriver =
{
AnyKinLinear lin =
{
AnyRefFrame& ref0 = Main.MyModel.GlobalRef.basenode;
AnyRefFrame& ref1 = Main.MyModel.seat_assem.seat_pan___1.Fix_Node;
Ref = 0;
};
AnyKinRotational rot =
{
AnyRefFrame& ref0 = Main.MyModel.GlobalRef.basenode;
AnyRefFrame& ref1 = Main.MyModel.seat_assem.seat_pan___1.Fix_Node;
Type = RotAxesAngles;
};
//MeasureOrganizer = {0}; //x
DriverPos = {0, 0, 0, 0, 0, 0};
DriverVel = {1, 0, 0, 0, 0, 0};
Reaction.Type = {On, On, On, On, On, On};
};
This code makes the seat move in the X direction.
Kind regards,
Pavel