I want to simplify my complicated code write neat and systematic code. I use animate after solving differential equations. It's my Phd code and is very heavy and complicated. I want to simplify my graphics. It consists of a lot of lines a lot of Disk and ... . I want to know that can I define contents of graphics before it.
s = NDSolve[{D[D[L, θ1'[t]], t] - D[L, θ1[t]] +
D[RDF, θ1'[t]] == 0, θ1[0] ==
Pi/6, θ1'[0] == 0}, {θ1}, {t, 50},];
Animate[Graphics[{Line[{θ1,
2 θ1}, {3 θ1, θ1}], Line[{}, {}], ...,
Disk[{θ1, 2 θ1}, {3 θ1, θ1}], ...,
Rectangle[{, }, {, }]}], {t, 1, 50}] /. s
for example Like that
s = NDSolve[{D[D[L, θ1'[t]], t] - D[L, θ1[t]] +
D[RDF, θ1'[t]] == 0, θ1[0] ==
Pi/6, θ1'[0] == 0}, {θ1}, {t, 50},];
Line1= Line[{θ1, 2 θ1}, {3 θ1, θ1}]
Line2=...
Disk1=Line[{θ1, 2 θ1}, {3 θ1, θ1}]
Disk2=...
Animate[Graphics[{Line1, Line2, ...,], {t, 1, 50}] /. s
I have not any answer and after received an idea I can Edit my question with a real and simple example that help other users.