Open cd155 opened 3 years ago
Thank you @cd155. I'll aim to get to this issue next week.
@smiths after reviewing the double pendulum example, I have a few questions.
&&
to add two equations together, but it just adds a huge AND between two equations. Currently, I use two instance models to separate two equations θ₁'' and θ₂''.v
symbol to replace θ'. Should I use v
or θ'? The same thing happens in θ''. I use a
as the angular acceleration of the pendulum, should I use θ'' instead?By looking at the example, we don't have any example giving multiple equations in one instance model. A similar layout is ThoeryModel
, in the theory model, we can give multiple ModelExpr
. The equivalent constructor seems not available in Instance Model.
https://github.com/JacquesCarette/Drasil/blob/af49fba74aecb1593dc5b91cb42d92a0121fb506/code/drasil-example/ssp/lib/Drasil/SSP/TMods.hs#L49-L52
Ideally, we would like to have those two equations in one instance model
I checked we have a similar display, but this is not ideal for the double pendulum example.
Thank you for searching through the examples @cd155. If it is too difficult to display, let's just go with a separate IM for each ODE. We shouldn't let display issues distract you from your main purpose.
We can use this issue for the review of double pendulum mentioned in the last comment for #2275. I don't have time right now, but some quick observations:
The purpose of this ticket is to make sure the physical knowledge in the current double pendulum example is accurate.
After completing #2618, the double pendulum example is one step further close to the actual double pendulum example. Previously, it was a single pendulum example. I mainly referenced the manual version of the double pendulum example which is provided in the following link
There are some issues I already noticed.
1. I introduced the term "object" to replace "mass" because I feel we use the term "mass" to represent two meanings.
In the end, I use the term "the mass of the first object".
2. I use both (x, y) and (1, 2) in the subscript. x means horizontal, y means vertical, 1 means the first object, 2 means the second object.
3. The final form of system ODE is α₁, α₂ in terms of θ₁, θ₂, w₁, w₂. There is a gap in how I finally get the final form. For now, the SRS just mentioned using a computer algebra program to solve given equations.