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 (linearAccelerationHeader.headerOk())
15  {
16  Info<< " Reading " << linearAccelerationHeader.name() << endl;
17 
18  linearAccelerationPtr.reset
19  (
20  new uniformDimensionedVectorField(linearAccelerationHeader)
21  );
22  }
23 
24 
25  IOobject angularVelocityHeader
26  (
27  "angularVelocity",
28  runTime.timeName(),
29  mesh,
30  IOobject::MUST_READ,
31  IOobject::AUTO_WRITE
32  );
33 
34  autoPtr<uniformDimensionedVectorField> angularVelocityPtr;
35 
36  if (angularVelocityHeader.headerOk())
37  {
38  Info<< " Reading " << angularVelocityHeader.name() << endl;
39 
40  angularVelocityPtr.reset
41  (
43  );
44  }
45 
46 
48  (
49  "angularAcceleration",
50  runTime.timeName(),
51  mesh,
52  IOobject::MUST_READ,
53  IOobject::AUTO_WRITE
54  );
55 
56  autoPtr<uniformDimensionedVectorField> angularAccelerationPtr;
57 
58  if (angularAccelerationHeader.headerOk())
59  {
60  Info<< " Reading " << angularAccelerationHeader.name() << endl;
61 
62  angularAccelerationPtr.reset
63  (
65  );
66  }
67 
68 
69  IOobject centreOfRotationHeader
70  (
71  "centreOfRotation",
72  runTime.timeName(),
73  mesh,
74  IOobject::MUST_READ,
75  IOobject::AUTO_WRITE
76  );
77 
78  autoPtr<uniformDimensionedVectorField> centreOfRotationPtr;
79 
80  if (centreOfRotationHeader.headerOk())
81  {
82  Info<< " Reading " << centreOfRotationHeader.name() << endl;
83 
84  centreOfRotationPtr.reset
85  (
87  );
88  }
autoPtr< uniformDimensionedVectorField > angularVelocityPtr
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:248
autoPtr< uniformDimensionedVectorField > angularAccelerationPtr
IOobject centreOfRotationHeader("centreOfRotation", 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
dynamicFvMesh & mesh
messageStream Info
autoPtr< uniformDimensionedVectorField > centreOfRotationPtr
IOobject angularAccelerationHeader("angularAcceleration", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE)
IOobject angularVelocityHeader("angularVelocity", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE)
UniformDimensionedField< vector > uniformDimensionedVectorField