CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

meaning of some lines in SmagorinskyZhang.C

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 31, 2021, 14:44
Default meaning of some lines in SmagorinskyZhang.C
  #1
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15
babakflame is on a distinguished road
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()
                 )
             );
     }
Thanks
babakflame is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 13:04.