-
Notifications
You must be signed in to change notification settings - Fork 3
Feedback for "fix1"
mkraska edited this page Mar 15, 2024
·
9 revisions
-
o
list of objects -
n
names field -
i
index offix1
object -
description
string with Text to identify the object for the user
-
o
list of objects -
n
names field -
i
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?
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).
In order to try code snippets in jsfiddle,
- copy the code from the wiki page to the clipboard
- follow the link for the JSXGraph version you want to try
- Replace the code in the HTML section (contents of
<p hidden id="init">
) with the content of the clipboard