Loading...
Searching...
No Matches
createK.H
Go to the documentation of this file.
1Info<< "Creating field kinetic energy K\n" << endl;
2volScalarField K("K", 0.5*magSqr(U));
3
4if (U.nOldTimes())
5{
6 volVectorField* Uold = &U.oldTime();
7 volScalarField* Kold = &K.oldTime();
8 *Kold == 0.5*magSqr(*Uold);
9
10 while (Uold->nOldTimes())
11 {
12 Uold = &Uold->oldTime();
13 Kold = &Kold->oldTime();
14 *Kold == 0.5*magSqr(*Uold);
15 }
16}
CGAL::Exact_predicates_exact_constructions_kernel K
U
Definition pEqn.H:72
Kold
Definition createK.H:13
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition Ostream.H:519
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)