ENH: autoLayerDriver: better layering information message
[OpenFOAM-2.0.x.git] / applications / solvers / lagrangian / icoUncoupledKinematicParcelFoam / createNonInertialFrameFields.H
blobabaede93857edbf9cc87a8d5bccf570c2b156fa5
1     Info<< "Reading non-inertial frame fields" << endl;
3     IOobject linearAccelerationHeader
4     (
5         "linearAcceleration",
6         runTime.timeName(),
7         mesh,
8         IOobject::MUST_READ,
9         IOobject::AUTO_WRITE
10     );
12     autoPtr<uniformDimensionedVectorField> linearAccelerationPtr;
14     if (linearAccelerationHeader.headerOk())
15     {
16         Info<< "    Reading " << linearAccelerationHeader.name() << endl;
18         linearAccelerationPtr.reset
19         (
20             new uniformDimensionedVectorField(linearAccelerationHeader)
21         );
22     }
25     IOobject angularVelocityHeader
26     (
27         "angularVelocity",
28         runTime.timeName(),
29         mesh,
30         IOobject::MUST_READ,
31         IOobject::AUTO_WRITE
32     );
34     autoPtr<uniformDimensionedVectorField> angularVelocityPtr;
36     if (angularVelocityHeader.headerOk())
37     {
38         Info<< "    Reading " << angularVelocityHeader.name() << endl;
40         angularVelocityPtr.reset
41         (
42             new uniformDimensionedVectorField(angularVelocityHeader)
43         );
44     }
47     IOobject angularAccelerationHeader
48     (
49         "angularAcceleration",
50         runTime.timeName(),
51         mesh,
52         IOobject::MUST_READ,
53         IOobject::AUTO_WRITE
54     );
56     autoPtr<uniformDimensionedVectorField> angularAccelerationPtr;
58     if (angularAccelerationHeader.headerOk())
59     {
60         Info<< "    Reading " << angularAccelerationHeader.name() << endl;
62         angularAccelerationPtr.reset
63         (
64             new uniformDimensionedVectorField(angularAccelerationHeader)
65         );
66     }
69     IOobject centreOfRotationHeader
70     (
71         "centreOfRotation",
72         runTime.timeName(),
73         mesh,
74         IOobject::MUST_READ,
75         IOobject::AUTO_WRITE
76     );
78     autoPtr<uniformDimensionedVectorField> centreOfRotationPtr;
80     if (centreOfRotationHeader.headerOk())
81     {
82         Info<< "    Reading " << centreOfRotationHeader.name() << endl;
84         centreOfRotationPtr.reset
85         (
86             new uniformDimensionedVectorField(centreOfRotationHeader)
87         );
88     }