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

word dragPhase ("blended")
 if (interfacialProperties.found("dragPhase"))

Variables

Info<< "Reading
transportProperties\n"<< endl;IOdictionary
transportProperties(IOobject("transportProperties",
runTime.constant(), mesh,
IOobject::MUST_READ,
IOobject::NO_WRITE));autoPtr
< phaseModel > 
phasea
autoPtr< phaseModel > phaseb
volVectorField & Ua = phasea->U()
surfaceScalarField & phia = phasea->phi()
const dimensionedScalar & rhoa = phasea->rho()
const dimensionedScalar & nua = phasea->nu()
volVectorField & Ub = phaseb->U()
surfaceScalarField & phib = phaseb->phi()
const dimensionedScalar & rhob = phaseb->rho()
const dimensionedScalar & nub = phaseb->nu()
Info<< "Reading field alpha\n"
<< endl;volScalarField alpha(IOobject("alpha",
runTime.timeName(), mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE), mesh);volScalarField
beta(IOobject("beta",
runTime.timeName(), mesh,
IOobject::NO_READ,
IOobject::NO_WRITE), scalar(1)-alpha);Info
<< "Reading field p\n"<< endl;volScalarField
p(IOobject("p",
runTime.timeName(), mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE), mesh);volVectorField
U(IOobject("U",
runTime.timeName(), mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE), alpha
*Ua+beta *Ub);dimensionedScalar
Cvm(transportProperties.lookup("Cvm"));dimensionedScalar
Cl(transportProperties.lookup("Cl"));dimensionedScalar
Ct(transportProperties.lookup("Ct"));surfaceScalarField
phi(IOobject("phi",
runTime.timeName(), mesh),
fvc::interpolate(alpha)*phia+fvc::interpolate(beta)*phib);volScalarField
rho(IOobject("rho",
runTime.timeName(), mesh),
alpha *rhoa+beta *rhob);Info
<< "Calculating field DDtUa
and DDtUb\n"<< endl;volVectorField
DDtUa=fvc::ddt(Ua)+fvc::div(phia,
Ua)-fvc::div(phia)*Ua;volVectorField
DDtUb=fvc::ddt(Ub)+fvc::div(phib,
Ub)-fvc::div(phib)*Ub;Info
<< "Calculating field g.h\n"
<< endl;volScalarField gh("gh",
g &mesh.C());IOdictionary
interfacialProperties(IOobject("interfacialProperties",
runTime.constant(), mesh,
IOobject::MUST_READ,
IOobject::NO_WRITE));autoPtr
< dragModel > 
draga
autoPtr< dragModel > dragb

Function Documentation

word dragPhase ( "blended"   ) 

Referenced by if().

Here is the caller graph for this function:

if ( interfacialProperties.  found"dragPhase"  ) 

Definition at line 178 of file createFields.H.

References args, dragPhase(), argList::executable(), Foam::exit(), Foam::FatalError, and FatalErrorIn.

Here is the call graph for this function:


Variable Documentation

Info<< "Reading transportProperties\n" << endl; IOdictionary transportProperties ( IOobject ( "transportProperties", runTime.constant(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE ) ); autoPtr<phaseModel> phasea

Initial value:

 phaseModel::New
    (
        mesh,
        transportProperties,
        "a"
    )

Definition at line 15 of file createFields.H.

autoPtr<phaseModel> phaseb

Initial value:

 phaseModel::New
    (
        mesh,
        transportProperties,
        "b"
    )

Definition at line 22 of file createFields.H.

volVectorField& Ua = phasea->U()

Definition at line 29 of file createFields.H.

Referenced by if().

surfaceScalarField& phia = phasea->phi()

Definition at line 30 of file createFields.H.

const dimensionedScalar& rhoa = phasea->rho()

Definition at line 31 of file createFields.H.

const dimensionedScalar& nua = phasea->nu()

Definition at line 32 of file createFields.H.

volVectorField& Ub = phaseb->U()

Definition at line 34 of file createFields.H.

Referenced by if().

surfaceScalarField& phib = phaseb->phi()

Definition at line 35 of file createFields.H.

Referenced by if().

const dimensionedScalar& rhob = phaseb->rho()

Definition at line 36 of file createFields.H.

const dimensionedScalar& nub = phaseb->nu()

Definition at line 37 of file createFields.H.

Info<< "Reading field alpha\n" << endl; volScalarField alpha ( IOobject ( "alpha", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); volScalarField beta ( IOobject ( "beta", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), scalar(1) - alpha ); Info<< "Reading field p\n" << endl; volScalarField p ( IOobject ( "p", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); volVectorField U ( IOobject ( "U", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), alpha*Ua + beta*Ub ); dimensionedScalar Cvm ( transportProperties.lookup("Cvm") ); dimensionedScalar Cl ( transportProperties.lookup("Cl") ); dimensionedScalar Ct ( transportProperties.lookup("Ct") ); surfaceScalarField phi ( IOobject ( "phi", runTime.timeName(), mesh ), fvc::interpolate(alpha)*phia + fvc::interpolate(beta)*phib ); volScalarField rho ( IOobject ( "rho", runTime.timeName(), mesh ), alpha*rhoa + beta*rhob ); Info<< "Calculating field DDtUa and DDtUb\n" << endl; volVectorField DDtUa = fvc::ddt(Ua) + fvc::div(phia, Ua) - fvc::div(phia)*Ua; volVectorField DDtUb = fvc::ddt(Ub) + fvc::div(phib, Ub) - fvc::div(phib)*Ub; Info<< "Calculating field g.h\n" << endl; volScalarField gh("gh", g & mesh.C()); IOdictionary interfacialProperties ( IOobject ( "interfacialProperties", runTime.constant(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE ) ); autoPtr<dragModel> draga

Initial value:

 dragModel::New
    (
        interfacialProperties,
        alpha,
        phasea,
        phaseb
    )

Definition at line 161 of file createFields.H.

autoPtr<dragModel> dragb

Initial value:

 dragModel::New
    (
        interfacialProperties,
        beta,
        phaseb,
        phasea
    )

Definition at line 169 of file createFields.H.

Referenced by if().

Copyright © 2000-2009 OpenCFD Ltd