c0dc374d98
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
41 lines
946 B
C
41 lines
946 B
C
{
|
|
// Solid side
|
|
simpleControl simpleSolid(solidMesh);
|
|
|
|
while (simpleSolid.correctNonOrthogonal())
|
|
{
|
|
coupledFvScalarMatrix TEqns(2);
|
|
|
|
fvScalarMatrix* TFluidEqn = new fvScalarMatrix
|
|
(
|
|
rho*Cp*
|
|
(
|
|
fvm::div(phi, T)
|
|
+ fvm::SuSp(-fvc::div(phi), T)
|
|
)
|
|
- fvm::laplacian(kappaEff, T)
|
|
==
|
|
radiation->Ru()
|
|
- fvm::Sp(4.0*radiation->Rp()*pow3(T), T)
|
|
+ 3.0*radiation->Rp()*pow4(T)
|
|
);
|
|
|
|
TFluidEqn->relax();
|
|
|
|
fvScalarMatrix* TSolidEqn = new fvScalarMatrix
|
|
(
|
|
- fvm::laplacian(kSolidf, Tsolid, "laplacian(k,T)")
|
|
+ fvm::SuSp(-solidThermo.S()/Tsolid, Tsolid)
|
|
);
|
|
|
|
TSolidEqn->relax();
|
|
|
|
// Add fluid equation
|
|
TEqns.set(0, TFluidEqn);
|
|
|
|
// Add solid equation
|
|
TEqns.set(1, TSolidEqn);
|
|
|
|
TEqns.solve();
|
|
}
|
|
}
|