Struct SBGraph creation from model JSON input. #42
joaquinffernandez
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The JSON format is quite similar to the one defined here. From the variable definitions of the model, we define the following nodes:
Then from the equations of the model, we can define:
From
a1[1]=((10-x1[1])^3)/R;
:From:
From:
From
der(x1[N])=(a1[N]-x2[1])/C;
:Finally, from
der(x2[1])=x1[N]/L;
:An the final definition is:
Beta Was this translation helpful? Give feedback.
All reactions