fb_bar - mkraska/meclib GitHub Wiki
To be implemented
[txt, isOK]: fb_bar(o, n, i, flags)
txt
feedback textisOK
flag for test resulto
list of objectsn
names fieldi
index ofbar
objectflags
optional string with further instructionsT
means accept tensile forces only.2
means test for antiparallel forces close to both ends.
This function provides feedback on "force" reactions replacing a "bar" object in the framework of Feedback for Free Body Diagrams.
Checks done by the fb_bar()
:
- Is the object deactivated?
- Any forces with matching name?
- For one-sided cut:
- force parallel to bar?
- if check for tensile/compressive definition, then check this.
- For double-sided cut (as might be required in trusswork, not yet implemented):
- forces of identical name?
- forces parallel to bar?
- forces antiparallel?
- if check for tensile/compressive definition, then check this.
Typical PRT
Feedback variables:
obj: stackjson_parse(objects);
[text, isOK]: fb_bar(obj, names, i1, "T");
PRT node
Algebraic test for isOK = true
and feedback of {@text@}
for both branches.