144 #ifndef functionObjects_scalarTransport_H 145 #define functionObjects_scalarTransport_H 155 namespace functionObjects
162 class scalarTransport
164 public fvMeshFunctionObject
184 word phasePhiCompressedName_;
202 bool resetOnStartUp_;
208 fv::optionList fvOptions_;
220 tmp<volScalarField> D
264 virtual bool write();
virtual ~scalarTransport()
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const word & name() const noexcept
Return the name of this functionObject.
virtual bool execute()
Calculate the scalarTransport.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Evolves a passive scalar transport equation.
A class for handling words, derived from Foam::string.
virtual bool read(const dictionary &)
Read the scalarTransport data.
TypeName("scalarTransport")
Runtime type information.
virtual bool write()
Do nothing.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))