Feedback for "fix1" - mkraska/meclib GitHub Wiki
fb_fix1(o, n, i, description)
o
list of objectsn
names fieldi
index offix1
objectdescription
string with Text to identify the object for the user
fb_fix1_name(o, n, i)
o
list of objectsn
names fieldi
index offix1
object
These functions provide Feedback for Free Body Diagrams.
"fix1" is a unidirectional support. It is to be replaced by a single reaction force.
Checks done by the fb_fix1()
:
- Is the object really of type "fix1" (just for developers)?
- Is the object deactivated?
- Has meclib found any reactions by proximity check?
- Is there exactly one reaction?
- Is the reaction of type "force" as opposed to "moment"?
- Is the reaction normal to the direction of unconstrained motion?
Checks done by the fb_fix1_name()
:
- Is the name a single character?
- Does the name of the reaction match the name of the support point?
Two-node PRT
Feedback variables:
obj: stackjson_parse(objects);
[text, isOK]: fb_fix1(obj, names, i_fix1, "Loslager A: ");
[ntext, nOK]: fb_fix1_name(obj, names, i_fix1);
PRT node 1 test for correct direction
Algebraic test for isOK = true
and feedback of {@text@}
for both branches.
PRT node 2 test for correct name
Algebraic test for nOK = true
and feedback of {@ntext@}
in the false
branch (with penalty of 0.5).