This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/solvers/coupled/pUCoupledFoam/createFields.H

72 lines
1.5 KiB
C
Raw Normal View History

2017-01-11 11:57:28 +00:00
Info << "Reading field p\n" << endl;
volScalarField p
(
2017-01-11 11:57:28 +00:00
IOobject
(
"p",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);
2017-01-11 11:57:28 +00:00
Info << "Reading field U\n" << endl;
volVectorField U
(
2017-01-11 11:57:28 +00:00
IOobject
(
"U",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);
2017-01-11 11:57:28 +00:00
# include "createPhi.H"
2017-01-11 11:57:28 +00:00
singlePhaseTransportModel laminarTransport(U, phi);
2017-01-11 11:57:28 +00:00
autoPtr<incompressible::RASModel> turbulence
(
2017-01-11 11:57:28 +00:00
incompressible::RASModel::New(U, phi, laminarTransport)
);
// Block vector field for velocity (first entry) and pressure (second
// entry).
Info << "Creating field Up\n" << endl;
volVector4Field Up
(
IOobject
(
"Up",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
mesh,
dimensionedVector4("zero", dimless, vector4::zero)
);
2016-03-18 11:44:28 +00:00
2017-01-11 11:57:28 +00:00
Info<< "Creating field rAU\n" << endl;
volScalarField rAU
2016-03-18 11:44:28 +00:00
(
2017-01-11 11:57:28 +00:00
IOobject
(
"rAU",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
2016-03-18 11:44:28 +00:00
mesh,
2017-01-11 11:57:28 +00:00
runTime.deltaT()
);
Merge PISO/PIMPLE solver updates. Author: Vanja Skuric. Merge: Henrik Rusche Conflicts: applications/solvers/compressible/rhoPorousMRFPimpleFoam/rhoPorousMRFPimpleFoam.C applications/solvers/compressible/steadyCompressibleFoam/pEqn.H applications/solvers/compressible/steadyCompressibleMRFFoam/createFields.H applications/solvers/compressible/steadyCompressibleMRFFoam/pEqn.H applications/solvers/compressible/steadyCompressibleSRFFoam/createFields.H applications/solvers/compressible/steadyCompressibleSRFFoam/pEqn.H applications/solvers/coupled/MRFPorousFoam/createFields.H applications/solvers/coupled/pUCoupledFoam/createFields.H tutorials/compressible/rhoPorousMRFPimpleFoam/mixerVessel2D/system/fvSolution tutorials/compressible/steadyCompressibleFoam/transonicBump/system/fvSchemes tutorials/compressible/steadyCompressibleSRFFoam/bentBlade/system/fvSchemes tutorials/compressible/steadyCompressibleSRFFoam/simpleBlade/system/fvSchemes tutorials/coupled/conjugateHeatFoam/conjugateCavity/system/fvSchemes tutorials/coupled/conjugateHeatSimpleFoam/conjugateCavity/system/fvSchemes tutorials/equationReader/equationReaderDemo/pitzDaily/system/fvSchemes tutorials/heatTransfer/buoyantBoussinesqPisoFoam/hotRoom/system/fvSchemes tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/system/fvSchemes tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/iglooWithFridges/system/fvSchemes tutorials/incompressible/pUCoupledFoam/backwardFacingStepLaminar/system/fvSchemes tutorials/incompressible/pUCoupledFoam/backwardFacingStepTurbulent/system/fvSchemes tutorials/incompressible/pUCoupledFoam/cavity/system/fvSchemes tutorials/viscoelastic/viscoelasticFluidFoam/XPP_SE/system/fvSchemes
2016-05-29 14:35:58 +00:00
2017-01-11 11:57:28 +00:00
mesh.schemesDict().setFluxRequired(p.name());
mesh.schemesDict().setFluxRequired("pcorr");