|
[Sponsors] |
calculate and sample wallGradU & wallShearStress every output time |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 8, 2013, 13:00 |
Sample wallShearStress every output time for all wall points
|
#1 |
Senior Member
ArathoN
Join Date: Jul 2011
Posts: 137
Rep Power: 16 |
Hello,
I'm a beginner user of OpenFoam, and after days of research i decided to ask your help dear community. I need to calculate the velocity gradient and the wall shear stress at every output time, and i don't know how I can do it. I tried to modify the solver but my knowledge of C code isn't enough to make me understand what i have to do. Another question is how can i output afterwards these data? I thought about using the sampledict but what should i choose between surface, sets and all other options? Finally i saw some output file from the sample function and i didn't understand the meaning of the column, what they represent if i choose for example the variable velocity U and i want to sample in the "x" direction starting from point P1 and ending on point P2? I thought on making something similar to the post-processing (it is written in the controldict and not in a separate file sampledict) present in the case "pitzDaily" where it outputs the fiels "P U K" every output time, but I don't know how I can do it. I hope some kind soul could help me and sorry for my bad English (not my native language). Last edited by ArathoN; November 17, 2013 at 19:49. |
|
November 12, 2013, 10:26 |
|
#2 |
Senior Member
ArathoN
Join Date: Jul 2011
Posts: 137
Rep Power: 16 |
I'm using this function in the control dict to calculate wallshearstress at every output time, but it gives me only the min and max value of the variable:
Code:
wallShearStress1 { type wallShearStress; functionObjectLibs ("libutilityFunctionObjects.so"); outputControl outputTime; setFormat gnuplot; patches ("lowerWall"); } what should i add to give me the valu of the stress in the lowerwall and the distance too? Last edited by ArathoN; November 17, 2013 at 14:36. Reason: inserted code tag |
|
November 12, 2013, 12:32 |
|
#3 |
Senior Member
ArathoN
Join Date: Jul 2011
Posts: 137
Rep Power: 16 |
I tried to use also the sample function like this:
Code:
interpolationScheme cellPoint; fields ( "wallShearStress" ); sets ( lineX1 { type uniform; axis distance; start (0 0 0); end (2.5 0 0); nPoints 10; } ); But it will give me a null wallstressshear for every position. can you please tell me what am i doing wrong? Last edited by ArathoN; November 17, 2013 at 14:37. Reason: inserted code tag |
|
November 17, 2013, 13:59 |
|
#4 |
Senior Member
ArathoN
Join Date: Jul 2011
Posts: 137
Rep Power: 16 |
finally now i coult sample the wallshearstress. I want now to use the "libutilityfunctionobjects.so" with wallShearStress1 function in controldict. The only problem is that it will give me only the min and max value for every timeset, how can i specify that it should give me all the values on the lowerwall, i need to evaluate the separation point of the flow in a backward facing step.
Code:
wallShearStress1 { type wallShearStress; functionObjectLibs ("libutilityFunctionObjects.so"); outputControl outputTime; setFormat gnuplot; patches ("lowerWall"); } |
|
November 17, 2013, 14:18 |
|
#5 |
Senior Member
ArathoN
Join Date: Jul 2011
Posts: 137
Rep Power: 16 |
I created the sample file so i can have the values of the wall shear stress with this code:
Code:
setFormat gnuplot; surfaceFormat raw; interpolationScheme cellPoint; fields ( "wallShearStress" ); sets ( lineX1 { type face; axis x; start (0 -0.1 0); end (2.5 -0.1 0); nPoints 400; } ); surfaces ( walls_interpolated { type patch; patches ( "lowerWall" ); interpolate true; } ); I saw that i can add the libsampling.so to the controldict file and by this i can sample too while running the solver i tried modifying the file but with no success, any of you have a hint? |
|
August 8, 2016, 08:50 |
calculate and sample wallGradU & wallShearStress every output time
|
#6 |
Member
SM
Join Date: Dec 2010
Posts: 97
Rep Power: 15 |
Is it possible now to calculate wallGradU & wallShearStress every output time by using the controldict?
|
|
August 8, 2016, 09:21 |
|
#7 | |
Member
SM
Join Date: Dec 2010
Posts: 97
Rep Power: 15 |
I found its possible to write in runtime with
Code:
wallShearStress1 { type wallShearStress; functionObjectLibs ("libutilityFunctionObjects.so"); patches ("wallbot"); // outputControl timeStep; outputControl runTime; writeInterval 0.005; } Quote:
|
||
February 18, 2017, 03:05 |
|
#8 | |
Member
Saurav Kumar
Join Date: Jul 2016
Posts: 80
Rep Power: 10 |
Hi
i used Quote:
how to do it, please tell me. is there any method or code available in controlDict file to do this? Thank you |
||
July 11, 2018, 13:14 |
|
#9 | |
Senior Member
Reviewer #2
Join Date: Jul 2015
Location: Knoxville, TN
Posts: 141
Rep Power: 11 |
Quote:
I do not see how this will work. How will the solver pass the turbulence model information to the function object? |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
wallShearStress, wallGradU are inconsistent | dancfd | OpenFOAM Post-Processing | 5 | July 18, 2018 09:33 |
why does 'sample' do this? wallShearStress question | CHARLES | OpenFOAM Post-Processing | 0 | August 7, 2013 20:30 |