|
[Sponsors] |
can I delete this piece of code from the twoPhaseEulerFoam? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 18, 2014, 17:39 |
can I delete this piece of code from the twoPhaseEulerFoam?
|
#1 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 841
Rep Power: 17 |
Hi guys,
In twoPhaseEulerFoam , we see: Code:
while (pimple.loop()) { fluid.solve(); fluid.correct(); volScalarField contErr1 Code:
void Foam::diameterModel::correct() {} |
|
December 19, 2014, 10:16 |
|
#2 |
Senior Member
|
Hi,
If you take a look at description of the class Code:
Class Foam::diameterModel Description A2stract base-class for dispersed-phase particle diameter models. |
|
January 20, 2015, 05:59 |
|
#3 |
Member
Anurag
Join Date: Aug 2014
Location: Germany
Posts: 57
Rep Power: 11 |
Hi Alexey,
I have a similar question about fluid.correct() and I do not follow your answer. Could you please explain it a little more? Thanks |
|
January 20, 2015, 06:22 |
|
#4 |
Member
Ron
Join Date: Jul 2014
Location: Japan
Posts: 40
Rep Power: 11 |
Anurag, You need to dig into that. The function is a member of the referred base class.
|
|
January 20, 2015, 07:25 |
|
#5 | |
Senior Member
|
Hi,
Quote:
More detailed version is: what is fluid? It is variable of type twoPhaseSystem defined in createFields.H: Code:
twoPhaseSystem fluid(mesh, g); Code:
void Foam::twoPhaseSystem::correct() { phase1_.correct(); phase2_.correct(); } Code:
class twoPhaseSystem : public IOdictionary { ... //- Phase model 1 phaseModel phase1_; ... } Code:
void Foam::phaseModel::correct() { return dPtr_->correct(); } Code:
class phaseModel : public volScalarField, public transportModel { ... //- Diameter model autoPtr<diameterModel> dPtr_; ... } Code:
constantDiameter isothermalDiameter IATE Is it a little bit more clear this time? |
||
January 22, 2015, 20:15 |
|
#6 |
Member
Anurag
Join Date: Aug 2014
Location: Germany
Posts: 57
Rep Power: 11 |
Many thanks for the detailed explanation. I really appreciate it.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The FOAM Documentation Project - SHUT-DOWN | holger_marschall | OpenFOAM | 242 | March 7, 2013 12:30 |
How to make code run in parallel? | cwang5 | OpenFOAM Programming & Development | 1 | May 30, 2011 04:47 |
Open Source Vs Commercial Software | MechE | OpenFOAM | 28 | May 16, 2011 11:02 |
Small 3-D code | Zdravko Stojanovic | Main CFD Forum | 2 | July 19, 2010 10:11 |
Design Integration with CFD? | John C. Chien | Main CFD Forum | 19 | May 17, 2001 15:56 |