Clean-up and formatting

This commit is contained in:
Hrvoje Jasak 2017-01-11 11:57:28 +00:00
parent 297f63cce2
commit bd5604c100
3 changed files with 68 additions and 73 deletions

View file

@ -20,9 +20,6 @@
+ 3.0*radiation->Rp()*pow4(T) + 3.0*radiation->Rp()*pow4(T)
); );
//Done automatically in 1.6.1-ext
//TFluidEqn->boundaryManipulate(T.boundaryField());
fvScalarMatrix* TSolidEqn = new fvScalarMatrix fvScalarMatrix* TSolidEqn = new fvScalarMatrix
( (
fvm::ddt(rhoCpsolid, Tsolid) fvm::ddt(rhoCpsolid, Tsolid)
@ -30,10 +27,6 @@
+ fvm::SuSp(-solidThermo.S()/Tsolid, Tsolid) + fvm::SuSp(-solidThermo.S()/Tsolid, Tsolid)
); );
//Done automatically in 1.6.1-ext
//TSolidEqn->boundaryManipulate(Tsolid.boundaryField());
// Add fluid equation // Add fluid equation
TEqns.set(0, TFluidEqn); TEqns.set(0, TFluidEqn);

View file

@ -29,6 +29,7 @@ volVectorField U
# include "createPhi.H" # include "createPhi.H"
singlePhaseTransportModel laminarTransport(U, phi); singlePhaseTransportModel laminarTransport(U, phi);
autoPtr<incompressible::RASModel> turbulence autoPtr<incompressible::RASModel> turbulence
( (
incompressible::RASModel::New(U, phi, laminarTransport) incompressible::RASModel::New(U, phi, laminarTransport)
@ -67,3 +68,4 @@ volScalarField rAU
); );
mesh.schemesDict().setFluxRequired(p.name()); mesh.schemesDict().setFluxRequired(p.name());
mesh.schemesDict().setFluxRequired("pcorr");

View file

@ -3,7 +3,7 @@
// Prepare clean 1/Ap without contribution from under-relaxation // Prepare clean 1/Ap without contribution from under-relaxation
// HJ, 26/Oct/2015 // HJ, 26/Oct/2015
volScalarField rUA volScalarField rAU
( (
"(1|A(U))", "(1|A(U))",
1/HUEqn().A() 1/HUEqn().A()
@ -13,7 +13,7 @@
// the flux precursor // the flux precursor
U.storePrevIter(); U.storePrevIter();
U = rUA*HUEqn().H(); U = rAU*HUEqn().H();
HUEqn.clear(); HUEqn.clear();
phi = fvc::interpolate(U) & mesh.Sf(); phi = fvc::interpolate(U) & mesh.Sf();