mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: rigidBodyDynamics: add Time& argument to make them compile
This commit is contained in:
@ -37,6 +37,8 @@ Description
|
||||
#include "rigidBodyModelState.H"
|
||||
#include "Fstream.H"
|
||||
#include "constants.H"
|
||||
#include "argList.H"
|
||||
#include "Time.H"
|
||||
|
||||
using namespace Foam;
|
||||
using namespace RBD;
|
||||
@ -46,10 +48,12 @@ using namespace Foam::constant::mathematical;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
#include "setRootCase.H"
|
||||
#include "createTime.H"
|
||||
dictionary pendulumAndSpringDict(IFstream("pendulumAndSpring")());
|
||||
|
||||
// Create the pendulumAndSpring model from dictionary
|
||||
rigidBodyMotion pendulumAndSpring(pendulumAndSpringDict);
|
||||
rigidBodyMotion pendulumAndSpring(runTime, pendulumAndSpringDict);
|
||||
|
||||
label nIter(readLabel(pendulumAndSpringDict.lookup("nIter")));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user