How to define the imaginary part of a remote force using ACT?
![Ayush Kumar](https://us.v-cdn.net/6037473/uploads/userpics/RGJ3E8O4WFAG/n98CYBYJ7H6ZS.jpg)
Ayush Kumar
Member, Moderator, Employee Posts: 472
✭✭✭✭
Answers
-
You can convert your Real and Imaginary values into Magnitude and Phase angle. Those two quantities can be applied in the form of a vector load using the following example:
rf = analysis.AddRemoteForce() # Scope the result object to the desired body … Im = 3. Re = 4. resultant = sqrt(Im**2 + Re**2) rf.DefineBy = LoadDefineBy.Vector rf.Magnitude.Output.DiscreteValues = [Quantity("%s [N]" % resultant)] phase = atan(Im / Re) * 180 / pi rf.PhaseAngle.Output.DiscreteValues = [Quantity("%s [deg]" % phase)] # If for example the force is applied in the Global Z-Axis rf.Direction = Vector3D(0, 0, 1)
0