Skip to content

fb_reactions()

mkraska edited this page Nov 25, 2024 · 5 revisions

[txt, OK]: fb_reactions(obj, f, m)

  • obj list of objects from input field
  • f expected number of force reactions
  • m expected number of moment reactions

This is a function for Feedback for Free Body Diagrams. The function counts

  • All "force" objects, with state "active" and no space character in their name (as it would be the case for resultants of distributed loads).
  • All "moment" objects with state "active".

Templates

Question text

[[feedback:System]]

Feedback variables

[txt, OK]: fb_system(names, sys, env, " Die Stäbe gehören alle zum System, die Lager gehören zur Umgebung." )
obj: stackjson_parse(objects);
[rtxt, rOK]: fb_reactions(obj, 3, 1);

Feedback node 1

Field Value
sans OK
tans true
feedback true {@txt@}
feedback false {@txt@}

Feedback node 2

Field Value
sans rOK
tans true
feedback true {@rtxt@}
feedback false {@rtxt@}

Tryout Space

In order to try code snippets in jsfiddle,

  1. copy the code from the wiki page to the clipboard
  2. follow the link for the JSXGraph version you want to try
  3. Replace the code in the HTML section (contents of <p hidden id="init">) with the content of the clipboard
Clone this wiki locally