#include "applications/solvers/multiphase/bubbleFoam/createRASTurbulence.H"
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 |
word dragPhase | ( | "blended" | ) |
Referenced by if().
if | ( | interfacialProperties. | found"dragPhase" ) |
Definition at line 178 of file createFields.H.
References args, dragPhase(), argList::executable(), Foam::exit(), Foam::FatalError, and FatalErrorIn.
Info<< "Reading transportProperties\n" << endl; IOdictionary transportProperties ( IOobject ( "transportProperties", runTime.constant(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE ) ); autoPtr<phaseModel> phasea |
phaseModel::New ( mesh, transportProperties, "a" )
Definition at line 15 of file createFields.H.
autoPtr<phaseModel> phaseb |
phaseModel::New ( mesh, transportProperties, "b" )
Definition at line 22 of file createFields.H.
Definition at line 29 of file createFields.H.
Referenced by if().
Definition at line 30 of file createFields.H.
Definition at line 31 of file createFields.H.
Definition at line 32 of file createFields.H.
Definition at line 34 of file createFields.H.
Referenced by if(), and reflectParcel::wallTreatment().
Definition at line 35 of file createFields.H.
Referenced by if().
Definition at line 36 of file createFields.H.
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 |
Definition at line 161 of file createFields.H.