what does this postProcessing SWAK code do?
it seems that this function keeps maximum velocity on the specified face during the run.correct till now.but what does mean its min max and average in accumulations?its maximum on the face itself and what does do accumulations after that?:confused:
Code:
n2_MaxU |
I'm guessing it returns accumulations over time.
|
Hi
how over time?in each time step it writes three values for min,max,average,what can these values point to? |
Let me spell that out for you:
time = 0 maxU=1 accumulate.min = 1 accumulate.max = 1 accumulate.avg = 1 time = 1 maxU=1.2 accumulate.min = 1 accumulate.max = 1.2 accumulate.avg = 1.1 time = 2 maxU = 1.3 accumulate.min = 1 accumulate.max = 1.3 accumulate.avg = 1.1666... Again, I'm speculating. Better go and test it on a simple case. |
in the last time step and when the run is over,maximum mag(U) is retained in max column at last time step value,right?and mean is the average of max over time steps,correct?
|
Greetings to all!
From what I can understand from swak4Foam's file "Libraries/simpleSwakFunctionObjects/general/swakExpressionFunctionObjectTemplates.C", it only calculates for the current time snapshot. It does not do the accumulation over time, it only does for each time. Best regards, Bruno |
Quote:
|
Hi dear Bernhard
I'm so much glad that you have came back from OF conference healthy! what a good work to make this thread live! I had a doubt still! this function keeps the maximum of variable(here velocity) for each cell of patch,correct? for example if we have two cells 1 and 2 and in t1 time step have U_1=50 and U_2=20 it returns max=50 and min=20 avg=35 in t2 if we have U_1=30 and U_2=60 it will return:max=60 min=50(because it replaces the values by maximum ones) and avg=55,right or not? a part of my results so far is: Code:
6.576724138e-05 3.023810841 4.660142385 1.923340442 |
Code:
n2_MaxU Code:
if (maxU<mag(U)) |
this error occurred in my recent run:
Code:
[2] --> FOAM FATAL ERROR: maybe its a bug in 0.2.4 version of Swak4Foam?it used to work in before version 0.2.3 (the same function) |
I commented out MaxU function and now it occurs on MaxP function too:
Code:
n2_Maxp Code:
n2_totalPressure Code:
Expression totalPressure_right : average=311369.862 |
Hi Ehsan,
First, a question: did these exact function objects work with the previous version of swak4Foam? As for the error: it looks like it is having problems with how the initialization is being done. Actually, after investigating this further, I've figured out that this only happens when using "outputTime". This does not happen when it's "timestep". Problem is that I don't know how to fix this... or at least not yet :( The following only worked partially: Code:
globalMaxPInit Either way, I based myself on global variables from here: http://openfoamwiki.net/images/d/da/...Leoben2011.pdf Best regards, Bruno |
Quote:
|
Quote:
Bug report please and I'll try to make this more transparent for the user The problem with the stored variable seems to be something slightly different |
Quote:
Quote:
now what should I do?set it to timeStep again? |
Quote:
Quote:
|
thanks.
then Code:
outputControlMode outputTime; I think it will be a large file that maybe hard to even open after end of run(just a guess!) |
Greetings to all!
@Bernhard: Bug report made here: https://sourceforge.net/apps/mantisb...iew.php?id=176 In additional, typo reported here: https://sourceforge.net/apps/mantisb...iew.php?id=177 Best regards, Bruno |
I was using those dictionaries without any problem in previous version although was not putting
Code:
outputControlMode outputTime Code:
outputControlMode timestep If not possible yet I have to downgrade:( |
Hi Ehsan,
Using the setting: Code:
outputControlMode timestep; Best regards, Bruno |
All times are GMT -4. The time now is 07:30. |