[Nek5000-users] ifield

nek5000-users at lists.mcs.anl.gov nek5000-users at lists.mcs.anl.gov
Thu Apr 15 15:40:13 CDT 2010


Frank,

ifield=1 --> fluid

2 --> thermal (temperature)

3 --> passive scalar 1

4 --> ps 2 , etc.

There is another flag "group" which I no longer support
which one can use to discriminate different fluid regions
w/ different propoerties.

I prefer user-defined discriminators, typically based on
geometry.   Your usage below would work fine for a single
liquid phase.

Paul


On Thu, 15 Apr 2010, nek5000-users at lists.mcs.anl.gov wrote:

> Hello all,

I am looking for how to assure that one and only one fluid is used.  For
instance, in the following snippet, "ifield" should not be greater than
1.  I guess am not sure what "ifield" means exactly.

       if (ifield.eq.1) then ! fluid/gas

          utrans=param(1)    ! density of liquid
          udiff =param(2)    ! dynamic viscosity of liquid

       else                  ! Thermal properties

          utrans=.1*param(7)    ! rhocp, liquid
          udiff =.1*param(8)    ! conductivity, liquid

       endif

Cheers,
Frank


-- 
Frank Herbert Muldoon, Ph.D. Mechanical Engineering
Technische Universität Wien (Technical University of Vienna)
Inst. f. Strömungsmechanik und Wärmeübertragung (Institute of Fluid
Mechanics and Heat Transfer)
Resselgasse 3
1040 Wien
Tel: +4315880132232
Fax: +4315880132299 
Cell:+436765203470
fmuldoo (skype)
http://tetra.fluid.tuwien.ac.at/fmuldoo/public_html/webpage/frank-muldoon.html

_______________________________________________
Nek5000-users mailing list
Nek5000-users at lists.mcs.anl.gov
https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users


More information about the Nek5000-users mailing list