CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] run-time post processing - y+ - swakExpression

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 6, 2014, 10:29
Default run-time post processing - y+ - swakExpression
  #1
Senior Member
 
Join Date: Nov 2012
Location: Bavaria
Posts: 145
Rep Power: 13
aylalisa is on a distinguished road
Dear Foamers,


can I compute a volScalarField with help of functionObjects?

yPlusLES_FO
{
type swakExpression;
valueType internalField;
variables (
"rho=998;"
"y=dist();"
"wSS=mag(wallShearStress);"
);
//accumulations (
// ?
//);
expression "(y*(sqrt(wSS)/rho)))/nu";
verbose true;
outputControlMode timeStep;
outputInterval 1;
}

If I comment out 'accumulations' I get an error but since I would like to get a volume scalar field as result I think I can not average or sum the result values?!


Each kind of support is appreciated!

Aylalisa
aylalisa is offline   Reply With Quote

Old   May 6, 2014, 16:02
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by aylalisa View Post
Dear Foamers,


can I compute a volScalarField with help of functionObjects?

yPlusLES_FO
{
type swakExpression;
valueType internalField;
variables (
"rho=998;"
"y=dist();"
"wSS=mag(wallShearStress);"
);
//accumulations (
// ?
//);
expression "(y*(sqrt(wSS)/rho)))/nu";
verbose true;
outputControlMode timeStep;
outputInterval 1;
}

If I comment out 'accumulations' I get an error but since I would like to get a volume scalar field as result I think I can not average or sum the result values?!


Each kind of support is appreciated!

Aylalisa
swakExpression is designed to only calculate single numbers. You want a field to postprocess in paraview right? In that case use the expressionField-function object.

Anyway: y+ is a thing of the wall and therefor an internalField is not the best choice. What might be better is readAndUpdateField (have a look at Examples/other/angledDuctImplicit/system/controlDict and Examples/FromPresentations/OSCFD_cleaningTank3D/system/controlDict for examples): there you define a special field with groovyBCs (in your case the y+-expression. I think you'll want to use delta() for the distance). That field is read in and the boundary conditions are updated at every timestep. In PV you'll have to read in the patch values as well and then use "Extract Block"
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   May 9, 2014, 09:01
Default
  #3
Senior Member
 
Join Date: Nov 2012
Location: Bavaria
Posts: 145
Rep Power: 13
aylalisa is on a distinguished road
Thank you very much for your support! I'll try to follow your instructions.
aylalisa 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
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 03:36
How to export time series of variables for one point? mary mor OpenFOAM Post-Processing 8 July 19, 2017 11:54
[Q] CHEMISTRY POST PROCESSING takes a long time... Whitebear CFX 3 August 8, 2014 10:39
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 14:58
AMI interDyMFoam for mixer nu problem danny123 OpenFOAM Programming & Development 8 September 6, 2013 03:34


All times are GMT -4. The time now is 12:35.