OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

createFields.H File Reference

Go to the source code of this file.


Functions

wordList pcorrTypes (p.boundaryField().size(), zeroGradientFvPatchScalarField::typeName)
 for (label i=0;i< p.boundaryField().size();i++)
 setRefCell (p, mesh.solutionDict().subDict("PISO"), pRefCell, pRefValue)

Variables

Info<< "Reading field p\n"
<< endl;volScalarField p(IOobject("p",
runTime.timeName(), mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE), mesh);Info
<< "Reading field alpha1\n"
<< endl;volScalarField alpha1(IOobject("alpha1",
runTime.timeName(), mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE), mesh);Info
<< "Reading field U\n"<< endl;volVectorField
U(IOobject("U",
runTime.timeName(), mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE), mesh);Info
<< "Reading
transportProperties\n"<< endl;twoPhaseMixture
twoPhaseProperties(U, phi);const
dimensionedScalar &rho1=twoPhaseProperties.rho1();const
dimensionedScalar &rho2=twoPhaseProperties.rho2();volScalarField
rho(IOobject("rho",
runTime.timeName(), mesh,
IOobject::READ_IF_PRESENT),
alpha1 *rho1+(scalar(1)-alpha1)*rho2,
alpha1.boundaryField().types());rho.oldTime();surfaceScalarField
rhoPhi(IOobject("rho*phi",
runTime.timeName(), mesh,
IOobject::NO_READ,
IOobject::NO_WRITE), rho1 *phi);interfaceProperties
interface(alpha1, U,
twoPhaseProperties);autoPtr
< incompressible::turbulenceModel 
turbulence )(incompressible::turbulenceModel::New(U, phi, twoPhaseProperties))
label pRefCell = 0
scalar pRefValue = 0.0

Function Documentation

wordList pcorrTypes ( p.  boundaryField).size(,
zeroGradientFvPatchScalarField::typeName   
)

for (  ) 

Definition at line 101 of file createFields.H.

References p, and pcorrTypes().

Here is the call graph for this function:

setRefCell ( p  ,
mesh.  solutionDict).subDict("PISO",
pRefCell  ,
pRefValue   
)


Variable Documentation

Info<< "Reading field p\n" << endl; volScalarField p ( IOobject ( "p", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); Info<< "Reading field alpha1\n" << endl; volScalarField alpha1 ( IOobject ( "alpha1", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); Info<< "Reading field U\n" << endl; volVectorField U ( IOobject ( "U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); Info<< "Reading transportProperties\n" << endl; twoPhaseMixture twoPhaseProperties(U, phi); const dimensionedScalar& rho1 = twoPhaseProperties.rho1(); const dimensionedScalar& rho2 = twoPhaseProperties.rho2(); volScalarField rho ( IOobject ( "rho", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT ), alpha1*rho1 + (scalar(1) - alpha1)*rho2, alpha1.boundaryField().types() ); rho.oldTime(); surfaceScalarField rhoPhi ( IOobject ( "rho*phi", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), rho1*phi ); interfaceProperties interface(alpha1, U, twoPhaseProperties); autoPtr<incompressible::turbulenceModel turbulence)(incompressible::turbulenceModel::New(U, phi, twoPhaseProperties))

label pRefCell = 0

Definition at line 110 of file createFields.H.

scalar pRefValue = 0.0

Definition at line 111 of file createFields.H.

Copyright © 2000-2009 OpenCFD Ltd