All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
createNonInertialFrameFields.H
Go to the documentation of this file.
1  Info<< "Reading non-inertial frame fields" << endl;
2 
3  IOobject linearAccelerationHeader
4  (
5  "linearAcceleration",
6  runTime.timeName(),
7  mesh,
8  IOobject::MUST_READ,
9  IOobject::AUTO_WRITE
10  );
11 
12  autoPtr<uniformDimensionedVectorField> linearAccelerationPtr;
13 
14  if
15  (
16  linearAccelerationHeader.typeHeaderOk<uniformDimensionedVectorField>
17  (
18  true
19  )
20  )
21  {
22  Info<< " Reading " << linearAccelerationHeader.name() << endl;
23 
24  linearAccelerationPtr.reset
25  (
26  new uniformDimensionedVectorField(linearAccelerationHeader)
27  );
28  }
29 
30 
31  IOobject angularVelocityHeader
32  (
33  "angularVelocity",
34  runTime.timeName(),
35  mesh,
36  IOobject::MUST_READ,
37  IOobject::AUTO_WRITE
38  );
39 
40  autoPtr<uniformDimensionedVectorField> angularVelocityPtr;
41 
43  {
44  Info<< " Reading " << angularVelocityHeader.name() << endl;
45 
46  angularVelocityPtr.reset
47  (
49  );
50  }
51 
52 
54  (
55  "angularAcceleration",
56  runTime.timeName(),
57  mesh,
58  IOobject::MUST_READ,
59  IOobject::AUTO_WRITE
60  );
61 
62  autoPtr<uniformDimensionedVectorField> angularAccelerationPtr;
63 
64  if
65  (
67  (
68  true
69  )
70  )
71  {
72  Info<< " Reading " << angularAccelerationHeader.name() << endl;
73 
74  angularAccelerationPtr.reset
75  (
77  );
78  }
79 
80 
81  IOobject centreOfRotationHeader
82  (
83  "centreOfRotation",
84  runTime.timeName(),
85  mesh,
86  IOobject::MUST_READ,
87  IOobject::AUTO_WRITE
88  );
89 
90  autoPtr<uniformDimensionedVectorField> centreOfRotationPtr;
91 
92  if
93  (
95  (
96  true
97  )
98  )
99  {
100  Info<< " Reading " << centreOfRotationHeader.name() << endl;
101 
102  centreOfRotationPtr.reset
103  (
105  );
106  }
IOobject centreOfRotationHeader("centreOfRotation", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE)
UniformDimensionedField< vector > uniformDimensionedVectorField
engineTime & runTime
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
autoPtr< uniformDimensionedVectorField > angularVelocityPtr
dynamicFvMesh & mesh
autoPtr< uniformDimensionedVectorField > centreOfRotationPtr
IOobject angularVelocityHeader("angularVelocity", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE)
Info<< "Reading non-inertial frame fields"<< endl;IOobject linearAccelerationHeader("linearAcceleration", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE);autoPtr< uniformDimensionedVectorField > linearAccelerationPtr
autoPtr< uniformDimensionedVectorField > angularAccelerationPtr
messageStream Info
IOobject angularAccelerationHeader("angularAcceleration", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE)