FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

createMDFields.H File Reference

Go to the source code of this file.

Functions

List< scalarField >  allSpeciesN_RU (molecules.potential().nIds(), scalarField(mesh.nCells(), 0.0))
List< scalarField >  allSpeciesM_RU (molecules.potential().nIds(), scalarField(mesh.nCells(), 0.0))
List< vectorField >  allSpeciesVelocitySum_RU (molecules.potential().nIds(), vectorField(mesh.nCells(), vector::zero))
List< scalarField >  allSpeciesVelocityMagSquaredSum_RU (molecules.potential().nIds(), scalarField(mesh.nCells(), 0.0))
Info<< nl<< "Creating fields."
<< endl;PtrList
< volScalarField >  
allSpeciesRhoN (molecules.potential().nIds())
 forAll (allSpeciesRhoN, rN)
Info<< " Creating total number
density field"<< endl;volScalarField
totalRhoN(IOobject("rhoN_total",
runTime.timeName(), mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE), mesh,
dimless/dimVolume,"zeroGradient");totalRhoN.internalField()=scalarField(mesh.nCells(),
0.0);totalRhoN.correctBoundaryConditions();PtrList
< volScalarField >  
allSpeciesRhoM (molecules.potential().nIds())
 forAll (allSpeciesRhoM, rM)
Info<< " Creating total mass
density field"<< endl;volScalarField
totalRhoM(IOobject("rhoM_total",
runTime.timeName(), mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE), mesh,
dimMass/dimVolume,"zeroGradient");totalRhoM.internalField()=scalarField(mesh.nCells(),
0.0);totalRhoM.correctBoundaryConditions();PtrList
< volVectorField >  
allSpeciesVelocity (molecules.potential().nIds())
 forAll (allSpeciesVelocity, v)
Info<< " Creating total
velocity field"<< endl;volVectorField
totalVelocity(IOobject("velocity_total",
runTime.timeName(), mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE), mesh,
dimensionedVector("zero",
dimVelocity, vector::zero));PtrList
< volScalarField >  
allSpeciesTemperature (molecules.potential().nIds())
 forAll (allSpeciesTemperature, t)
Info<< " Creating total
temperature field"<< endl;volScalarField
totalTemperature(IOobject("temperature_total",
runTime.timeName(), mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE), mesh,
dimTemperature,"zeroGradient");totalTemperature.internalField()=scalarField(mesh.nCells(),
0.0);totalTemperature.correctBoundaryConditions();PtrList
< volScalarField >  
allSpeciesMeanKE (molecules.potential().nIds())
 forAll (allSpeciesMeanKE, mKE)

Function Documentation

List< scalarField > allSpeciesN_RU ( molecules.   potential).nIds(,
scalarField(mesh.nCells(), 0.0)    
)

Referenced by forAll(), and if().

List< scalarField > allSpeciesM_RU ( molecules.   potential).nIds(,
scalarField(mesh.nCells(), 0.0)    
)

Referenced by forAll(), and if().

List< vectorField > allSpeciesVelocitySum_RU ( molecules.   potential).nIds(,
vectorField(mesh.nCells(), vector::zero)    
)

Referenced by forAll(), and if().

List< scalarField > allSpeciesVelocityMagSquaredSum_RU ( molecules.   potential).nIds(,
scalarField(mesh.nCells(), 0.0)    
)

Referenced by forAll(), and if().

Info<< nl << "Creating fields." << endl;PtrList<volScalarField> allSpeciesRhoN ( molecules.   potential).nIds(  )

Referenced by forAll(), and if().

forAll ( allSpeciesRhoN   ,
rN    
)
Info<< " Creating total number density field" << endl;volScalarField totalRhoN( IOobject ( "rhoN_total", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mesh, dimless/dimVolume, "zeroGradient");totalRhoN.internalField() = scalarField (mesh.nCells(), 0.0);totalRhoN.correctBoundaryConditions();PtrList<volScalarField> allSpeciesRhoM ( molecules.   potential).nIds(  )

Referenced by forAll(), and if().

forAll ( allSpeciesRhoM   ,
rM    
)
Info<< " Creating total mass density field" << endl;volScalarField totalRhoM( IOobject ( "rhoM_total", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mesh, dimMass/dimVolume, "zeroGradient");totalRhoM.internalField() = scalarField (mesh.nCells(), 0.0);totalRhoM.correctBoundaryConditions();PtrList<volVectorField> allSpeciesVelocity ( molecules.   potential).nIds(  )

Referenced by forAll(), and if().

forAll ( allSpeciesVelocity   ,
v    
)

Definition at line 150 of file createMDFields.H.

References allSpeciesVelocity(), Foam::dimVelocity, Foam::endl(), Foam::Info, and mesh.

Info<< " Creating total velocity field" << endl;volVectorField totalVelocity( IOobject ( "velocity_total", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mesh, dimensionedVector("zero", dimVelocity, vector::zero));PtrList<volScalarField> allSpeciesTemperature ( molecules.   potential).nIds(  )

Referenced by forAll(), and if().

forAll ( allSpeciesTemperature   ,
t    
)
Info<< " Creating total temperature field" << endl;volScalarField totalTemperature( IOobject ( "temperature_total", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mesh, dimTemperature, "zeroGradient");totalTemperature.internalField() = scalarField (mesh.nCells(), 0.0);totalTemperature.correctBoundaryConditions();PtrList<volScalarField> allSpeciesMeanKE ( molecules.   potential).nIds(  )

Referenced by forAll(), and if().

forAll ( allSpeciesMeanKE   ,
mKE    
)

Definition at line 280 of file createMDFields.H.

References allSpeciesMeanKE(), Foam::endl(), Foam::Info, and mesh.