ENH: 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
committed by Andrew Heather
parent f180ab7249
commit fe595af8c6
11 changed files with 50 additions and 19 deletions

View File

@ -253,6 +253,7 @@ void Foam::rigidBodyMeshMotion::solve()
{
model_.solve
(
t.value(),
t.deltaTValue(),
scalarField(model_.nDoF(), Zero),
Field<spatialVector>(model_.nBodies(), Zero)
@ -282,6 +283,7 @@ void Foam::rigidBodyMeshMotion::solve()
model_.solve
(
t.value(),
t.deltaTValue(),
scalarField(model_.nDoF(), Zero),
fx

View File

@ -201,6 +201,7 @@ void Foam::rigidBodyMeshMotionSolver::solve()
{
model_.solve
(
t.value(),
t.deltaTValue(),
scalarField(model_.nDoF(), Zero),
Field<spatialVector>(model_.nBodies(), Zero)
@ -230,6 +231,7 @@ void Foam::rigidBodyMeshMotionSolver::solve()
model_.solve
(
t.value(),
t.deltaTValue(),
scalarField(model_.nDoF(), Zero),
fx