rigidBodyModelState: Added time value member

The absolute value of the the time has been added to the rigid body
model state. This value is not directly necessary for calculating the
evolution of the rigid body system, it just facilitates the
implementation of sub-models which are in some way time-dependent.
This commit is contained in:
Will Bainbridge
2017-12-13 11:59:46 +00:00
parent a2ac77bdb1
commit 10e75bf28a
11 changed files with 50 additions and 19 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2016-2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -75,7 +75,7 @@ int main(int argc, char *argv[])
for (label i=0; i<nIter; i++)
{
pendulumAndSpring.solve(deltaT, tau, fx);
pendulumAndSpring.solve(t + deltaT, deltaT, tau, fx);
}
// Write the results for graph generation

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2016-2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -80,7 +80,7 @@ int main(int argc, char *argv[])
for (label i=0; i<nIter; i++)
{
sphericalJoint.solve(deltaT, tau, fx);
sphericalJoint.solve(t + deltaT, deltaT, tau, fx);
}
// Write the results for graph generation

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2016-2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -71,7 +71,7 @@ int main(int argc, char *argv[])
for (label i=0; i<nIter; i++)
{
spring.solve(deltaT, tau, fx);
spring.solve(t + deltaT, deltaT, tau, fx);
}
// Write the results for graph generation