CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

nut wall functions for incompressible RAS

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By mturcios777
  • 1 Post By mturcios777

Reply
 
LinkBack Thread Tools Display Modes
Old   May 8, 2012, 10:55
Red face nut wall functions for incompressible RAS
  #1
New Member
 
Join Date: May 2012
Posts: 3
Rep Power: 5
stilljourney is on a distinguished road
Hi guys! I'm new to openFOAM, and it's my first thread here.

I'm trying to run an existed openfoam case (it is written in 1.6.0) using openFOAM 2.1.0. I'm using LaunderSharmaKE turbulence model. The 0/nut file has some entries as:

fixedWalls
{
type nutWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
value uniform 0;
}

I guess this is where the problem generates. When I run simpleFoam solver, it gives out the error message:

--> FOAM FATAL IO ERROR:
Unknown patchField type nutWallFunction for patch type wall

Valid patchField types are :

65
(
advective
atmBoundaryLayerInletEpsilon
buoyantPressure
calculated
codedFixedValue
codedMixed
cyclic
cyclicAMI
cyclicSlip
directionMixed
empty
epsilonWallFunction
fan
fanPressure
fixedFluxPressure
fixedGradient
fixedInternalValue
fixedPressureCompressibleDensity
fixedValue
freestream
freestreamPressure
inletOutlet
inletOutletTotalTemperature
kappatJayatillekeWallFunction
kqRWallFunction
mapped
mappedField
mappedFixedInternalValue
mappedFixedPushedInternalValue
mixed
nonuniformTransformCyclic
nutLowReWallFunction
nutTabulatedWallFunction
nutURoughWallFunction
nutUSpaldingWallFunction
nutUWallFunction
nutkRoughWallFunction
nutkWallFunction
omegaWallFunction
oscillatingFixedValue
outletInlet
outletMappedUniformInlet
partialSlip
processor
processorCyclic
rotatingTotalPressure
sliced
slip
symmetryPlane
syringePressure
timeVaryingMappedFixedValue
totalPressure
totalTemperature
turbulentHeatFluxTemperature
turbulentInlet
turbulentIntensityKineticEnergyInlet
turbulentMixingLengthDissipationRateInlet
turbulentMixingLengthFrequencyInlet
uniformDensityHydrostaticPressure
uniformFixedValue
uniformTotalPressure
waveSurfacePressure
waveTransmissive
wedge
zeroGradient
)

I checked $FOAM_SRC/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFuntions, there is a folder named nutWallFunctions, inside which list many wall functions.

So my question is which wall function I should use to replace the "nutWallFunction" entry. Would anyone give me some hints?

Thanks a lot!
stilljourney is offline   Reply With Quote

Old   July 24, 2012, 19:04
Default
  #2
uli
New Member
 
Join Date: Jun 2012
Posts: 25
Rep Power: 5
uli is on a distinguished road
hi all

I am facing exactly the same problem. I am trying to run a case, which works in OF1.7.x, in OF2.1.1 and get.

Code:
--> FOAM FATAL IO ERROR: 
Unknown patchField type nutWallFunction for patch type wall

Valid patchField types are :

69
(
advective
atmBoundaryLayerInletEpsilon
buoyantPressure
calculated
codedFixedValue
codedMixed
cyclic
cyclicAMI
cyclicSlip
directionMixed
empty
epsilonWallFunction
fan
fanPressure
fixedFluxPressure
fixedGradient
fixedInternalValue
fixedPressureCompressibleDensity
fixedValue
freestream
freestreamPressure
inletOutlet
inletOutletTotalTemperature
kappatJayatillekeWallFunction
kqRWallFunction
mapped
mappedField
mappedFixedInternalValue
mappedFixedPushedInternalValue
mixed
multiphaseFixedFluxPressure
nonuniformTransformCyclic
nuSgsUSpaldingWallFunction
nutLowReWallFunction
nutTabulatedWallFunction
nutURoughWallFunction
nutUSpaldingWallFunction
nutUWallFunction
nutkAtmRoughWallFunction
nutkRoughWallFunction
nutkWallFunction
omegaWallFunction
oscillatingFixedValue
outletInlet
outletMappedUniformInlet
partialSlip
phaseHydrostaticPressure
processor
processorCyclic
rotatingTotalPressure
sliced
slip
symmetryPlane
syringePressure
timeVaryingMappedFixedValue
totalPressure
totalTemperature
turbulentHeatFluxTemperature
turbulentInlet
turbulentIntensityKineticEnergyInlet
turbulentMixingLengthDissipationRateInlet
turbulentMixingLengthFrequencyInlet
uniformDensityHydrostaticPressure
uniformFixedValue
uniformTotalPressure
waveSurfacePressure
waveTransmissive
wedge
zeroGradient
)


file: /home/myname/OpenFOAM/myname-2.1.1/run/sa/mycase/0/nut::boundaryField::circular from line 26 to line 30.

    From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&)
    in file /home/myname/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 135.

FOAM exiting
The case is about vortex shedding in the wake of a circular cylinder at Re=90000

Any suggestions regarding the wallfunction that should be used since "nutWallFunction" is no more available?
uli is offline   Reply With Quote

Old   July 24, 2012, 19:09
Default
  #3
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 727
Rep Power: 18
mturcios777 will become famous soon enough
Try nutkWallFunction or nutUWallFunction; nutkWallFunction replicates OF 1.5.x behaviour. If you look at the code you can see that the different between them is the way the yplus is calculated. The doxygen documentation is your friend here:

http://foam.sourceforge.net/docs/cpp/a08745.html
FrankFlow likes this.
mturcios777 is offline   Reply With Quote

Old   July 24, 2012, 20:09
Default
  #4
uli
New Member
 
Join Date: Jun 2012
Posts: 25
Rep Power: 5
uli is on a distinguished road
Thanks for the quick response.

So the initial condition for nut is given in the same way:

Code:
    circular
    {
        type            nutkWallFunction;
        Cmu             0.09;
        kappa           0.41;
        E               9.8;
        value           uniform 0;
    }
?
uli is offline   Reply With Quote

Old   July 25, 2012, 12:03
Default
  #5
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 727
Rep Power: 18
mturcios777 will become famous soon enough
Yes. When in doubt, find a working case from the tutorials that has something similar to what you want, then copy that.
uli likes this.
mturcios777 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF Wall functions in Fluent syler3321 Fluent UDF and Scheme Programming 2 September 20, 2014 12:37
Wall functions tutlhino OpenFOAM Pre-Processing 0 July 2, 2007 05:04
Wall Functions pierre OpenFOAM Running, Solving & CFD 0 October 1, 2005 13:13
the problem of the wall functions www_sun Phoenics 2 March 13, 2002 20:15
Wall functions Confused Main CFD Forum 1 August 14, 1998 09:31


All times are GMT -4. The time now is 11:36.