yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #23156
Re: [Question #690825]: writing a yade class
Question #690825 on Yade changed:
https://answers.launchpad.net/yade/+question/690825
Status: Open => Needs information
Jan Stránský requested more information:
> before declaring as a static method. ok?
this I don't understand.. :-(
such discussion is becoming too abstract, probably the specific content of your files would be needed.. (as a single post probably?)
> but where and how (syntax) do i define and implement the expression
for d(alfa)/dt=.... in this part??
same as above, please provide the content of your .hpp and .cpp files..
from what I understood:
// .hpp file
class MyPhys {
static Real computeNewAlpha(...);
...
}
// .cpp file
Real MyPhys :: computeNewAlpha(...) {
// here you put the computation, wither directly or possibly using other functions, depends..
return newAlpha;
}
cheers
Jan
--
You received this question notification because your team yade-users is
an answer contact for Yade.