EEqns.H
Go to the documentation of this file.
1 for (int Ecorr=0; Ecorr<nEnergyCorrectors; Ecorr++)
2 {
3  fluid.correctEnergyTransport();
4 
5  autoPtr<phaseSystem::heatTransferTable>
6  heatTransferPtr(fluid.heatTransfer());
7 
8  phaseSystem::heatTransferTable&
9  heatTransfer = heatTransferPtr();
10 
11  {
12  tmp<fvScalarMatrix> E1Eqn(phase1.heEqn());
13 
14  if (E1Eqn.valid())
15  {
16  E1Eqn =
17  (
18  E1Eqn
19  ==
20  *heatTransfer[phase1.name()]
21  + alpha1*rho1*(U1&g)
22  + fvOptions(alpha1, rho1, phase1.thermo().he())
23  );
24 
25  E1Eqn->relax();
26  fvOptions.constrain(E1Eqn.ref());
27  E1Eqn->solve();
28  }
29  }
30 
31  {
32  tmp<fvScalarMatrix> E2eqn(phase2.heEqn());
33 
34  if (E2eqn.valid())
35  {
36  E2eqn =
37  (
38  E2eqn
39  ==
40  *heatTransfer[phase2.name()]
41  + alpha2*rho2*(U2&g)
42  + fvOptions(alpha2, rho2, phase2.thermo().he())
43  );
44 
45  E2eqn->relax();
46  fvOptions.constrain(E2eqn.ref());
47  E2eqn->solve();
48  }
49  }
50 
51  fluid.correctThermo();
52 }
53 
54 Info<< phase1.name() << " min/max T "
55  << min(phase1.thermo().T()).value()
56  << " - "
57  << max(phase1.thermo().T()).value()
58  << endl;
59 
60 Info<< phase2.name() << " min/max T "
61  << min(phase2.thermo().T()).value()
62  << " - "
63  << max(phase2.thermo().T()).value()
64  << endl;
multiphaseSystem & fluid
Definition: createFields.H:10
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
E1Eqn
Definition: EEqns.H:33
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:253
fv::options & fvOptions
rho1
Definition: pEqn.H:114
rho2
Definition: pEqn.H:115
volVectorField & U1
alpha2
Definition: alphaEqn.H:112
phaseModel & phase1
const dimensionedVector & g
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
volScalarField & alpha1
volVectorField & U2
messageStream Info
phaseModel & phase2