FBD: Reactions - mkraska/meclib GitHub Wiki
This is part of the FBD Example Question tutorial.
Previous step: FBD: Equations
Here we ask for the support reactions and check them against the equillibrium conditions supplied by the student.
Here we just create the model answer from the model answer sketch.
Rnames: listofvars(ev(GG,[a=1,q_0=1]));
TR: solve(GG, Rnames)[1];
We add instructions and allocate input and feedback.
**Auflagerreaktionen**
<p>Bestimmen Sie die Auflagerreaktionen. Geben Sie die Ergebnisse als Gleichungen <code>Variable1=Ausdruck</code> an, eine Gleichung in jedes Eingabefeld, die Reihenfolge ist egal. Geprüft wird, ob die von Ihnen angegebenen Gleichgewichtsbedingungen erfüllt sind.</p>
<p>[[input:R]] [[validation:R]] <br>[[feedback:R]]</p>
- Verify the question and update the form.
Field | Value | Note |
---|---|---|
Input type | Matrix | |
Model answer | transpose(matrix(TR)) |
To have a stack of input fields |
Insert stars | Insert stars for spaces only | this is consistent with the name editing in Meclib |
Syntax hint | Doesn't show up anyways | |
Hint attribute | Placeholder | |
Forbid floats | No | |
Show the validation | Yes, compact |
- Feedback style: Compact
- Set format of the feedback texts to HTML
Feedback variables
We substitute the provided expressions in the sums of forces and moments as provided by the student and check if the sums are zero. Note that we divide by the symbolic quantity resulting from the given load. For display of deviations we have to multiply by this again.
RL: args(transpose(R));
Sx: ev(GGx/(q_0*a), RL);
Sy: ev(GGy/(q_0*a), RL);
SM: ev(GGM/(q_0*a^2), RL);
Node 1:
- NumAbsolute test for
Sx = 0
with tolerance0.01
- True feedback:
<br>\(\Sigma F_x=0\) ist erfüllt.
- False feedback:
<br>\(\Sigma F_x={@Sx*a*q_0@}\). Die Gleichgewichtsbedingung ist nicht erfüllt.
- Next: Node 2 for both branches
- When false, set score to zero
Node 2:
- NumAbsolute test for
Sy = 0
with tolerance0.01
- True feedback:
<br>\(\Sigma F_y=0\) ist erfüllt.
- False feedback:
<br>\(\Sigma F_y={@Sy*a*q_0@}\). Die Gleichgewichtsbedingung ist nicht erfüllt.
- Next: Node 3 for both branches
- When false, set score to zero
Node 3:
- NumAbsolute test for
SM = 0
with tolerance0.01
- True feedback:
<br>\(\Sigma M_\oplus=0\) ist erfüllt.
- False feedback:
<br>\(\Sigma M_\oplus={@SM*q_0*a^2@}\). Die Gleichgewichtsbedingung ist nicht erfüllt.
- When false, set score to zero
- Set matrix delimiter to None
- Save and continue editing, Preview
- Fill in correct responses, Check