Sample wallShearStress every output time for all wall points
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 :D and sorry for my bad English (not my native language). |
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 what should i add to give me the valu of the stress in the lowerwall and the distance too? |
I tried to use also the sample function like this:
Code:
interpolationScheme cellPoint; But it will give me a null wallstressshear for every position. can you please tell me what am i doing wrong? |
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 |
I created the sample file so i can have the values of the wall shear stress with this code:
Code:
setFormat gnuplot; 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? |
calculate and sample wallGradU & wallShearStress every output time
Is it possible now to calculate wallGradU & wallShearStress every output time by using the controldict?
|
I found its possible to write in runtime with
Code:
wallShearStress1 Quote:
|
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 |
Quote:
I do not see how this will work. How will the solver pass the turbulence model information to the function object? |
All times are GMT -4. The time now is 00:17. |