Hi,

I have been trying to find out how to apply a desired displacement to a 
node of an Euler beam and then run a static simulation on that beam. I 
explained my confusion regarding this in another conversation 
<https://groups.google.com/g/projectchrono/c/ZgupvjaKfFg>.

I read here 
<https://groups.google.com/g/projectchrono/c/diaEScqwBWs/m/3BbCM5VnEwAJ> 
that one can use StateGather and StateScatter. Would this work also for my 
case? I saw that ChNodeFEAxyzrot has similar functions. Could I use them 
like this:

std::shared_ptr<chrono::fea::ChNodeFEAxyzrot> beamChronoNode=//this is 
initialized with a beam node;
ChState x; ChStateDelta v; double t; 
beamChronoNode->NodeIntStateGather(0, x, 0, v, t); //do I get the initial 
state of the node?
ChVector<double> displacementVector(dx,0,0); //lets say I want to displace 
the position of the node by dx
x = x + displacementVector; //how do I apply the displacement vector to the 
state of the node?
 beamChronoNode->NodeIntStateScatter(0, x, 0, v, t);// do I set the new 
state like this?

I appreciate any input.
Thanks,
Iason

-- 
You received this message because you are subscribed to the Google Groups 
"ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/projectchrono/7a55a0b1-c812-4b7c-b9c1-b2797549e6ffn%40googlegroups.com.

Reply via email to