|
[Sponsors] |
March 31, 2021, 14:44 |
meaning of some lines in SmagorinskyZhang.C
|
#1 |
Senior Member
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15 |
Dear Folks
I am kinda new in multiphase solvers of OpenFoam. I am trying to learn SmagorinskyZhang model in this address in OF 8. $FOAM_SRC/MomentumTransportModels/phaseCompressible/LES/SmagorinskyZhang Can somebody please explain to me what does this if condition exactly mean? Code:
if (!gasTurbulencePtr_) { const volVectorField& U = this->U_; const transportModel& liquid = this->transport(); const twoPhaseSystem& fluid = refCast<const twoPhaseSystem>(liquid.fluid()); const transportModel& gas = fluid.otherPhase(liquid); gasTurbulencePtr_ = &U.db() .lookupObject<PhaseCompressibleTurbulenceModel<transportModel>> ( IOobject::groupName ( turbulenceModel::propertiesName, gas.name() ) ); } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Tutorials] Tutorial of how to plot residuals ! | wolle1982 | OpenFOAM Community Contributions | 171 | February 20, 2024 02:55 |
[ANSYS Meshing] creating lines from sketches to parts of my surface | ali akbar salehi | ANSYS Meshing & Geometry | 0 | September 25, 2020 01:59 |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 19:43 |
[DesignModeler] Need to create construction lines to plot data along them in cfd-post | Soheyl.ysf | ANSYS Meshing & Geometry | 0 | April 29, 2014 02:42 |
Plotting Residuals | ata | OpenFOAM | 12 | July 8, 2011 02:50 |