mbsim-env / mbsim

A multi-body simulation software
https://www.mbsim-env.de
GNU Lesser General Public License v2.1
42 stars 16 forks source link

Function init process #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
MBSim Functions are now derived from Element to be able to call init(...) and 
initializeUsingXML(...) on these! Also getPath() is available with this change 
on Functions.

However this requires f->setParent(this) and f->init(stage) (and maybe 
f->setName(...)) to be called whenever a object containing a function f was 
created, initialized, ...

This is already done for most of the code except the following classes and/or 
files:
constitutive_laws.*
lcp_reformulation_functions.*
damping_functions.*
newton_method_jacobian_functions.*
criteria_functions.*
multi_dimensional_*_solver.*
nonlinear_algebra.*
piecewise_polynom_function.*
GeneralizedVelocityConstraint
GeneralizedAccelerationConstraint
Residuum
GeneralizedVelocityExcitation
GeneralizedAccelerationExcitation

Some of these classes are itself not derived from Element. This may be 
inconsistent or even incorrect and must be checked/fixed.

Original issue reported on code.google.com by friedrich.at.gc@googlemail.com on 15 Nov 2014 at 7:54

GoogleCodeExporter commented 9 years ago
The following files are already changed (see r3475)

constraint.*
constitutive_laws.*

More changes will follow ...

Original comment by martin.o...@googlemail.com on 16 Nov 2014 at 11:33

GoogleCodeExporter commented 9 years ago
OK. I have not looked in detail in r3475. But this is good so.

Original comment by friedrich.at.gc@googlemail.com on 16 Nov 2014 at 4:00

GoogleCodeExporter commented 9 years ago
The file kinematic_excitation.* has been changed (see r3490).

In the rest of the files only internal functions are concerned which are not 
part of the modelling, e.g. multi_dimensional_*_solver.*. An initialization by 
init(stage) seems not to be necessary. 

Hence I would close this issue.

Original comment by martin.o...@googlemail.com on 16 Nov 2014 at 6:05

GoogleCodeExporter commented 9 years ago

Original comment by friedrich.at.gc@googlemail.com on 17 Nov 2014 at 9:43