A way to update groovyBC variables during the solution
hi
I was searching for the cause of not changing the results when I change groovyBC variables for all two days and nights! I had run till a important time that a change in BC occurs but it need to change a variable for better simulation.i was changing related variables but nothing seem to change! I simplified it and deleted everything but surprisingly it was not fixed. at last i found that it should be run from starting so that groovyBC can update its variables. then i search for a way to update groovyBC variables and expressions after stopping the solution during a run.is such thing available?or i have to start from zero folder again and again? thanks. |
is any help available?is it possible by any of groovyBC or pyFOAM utilities?does such thing exist?
|
Quote:
Code:
debugCommonDriver true; |
I forgot to put ; after valueExpression so far.but no error has shown.what may be the cause?
I add these expressions in all groovyBC boundary conditions and get a run? thanks. |
Quote:
|
thanks.
Should i add two expressions you told me to every groovyBC conditions? I have the problem yet.i have run untill an important time(that moving shock faces to wall and reflects) before it happens i want to change a variable relating to time of opening of the wall(to find a proper value) but no change occurs unless i delete all time step folders and start from begining.is it a true situaion? You mean groovyBC should read 0 folder in each time step again? Thank you. |
Quote:
Quote:
If you have problems with implementing dynamic boundary conditions first test them on a tiny "toy-case" that is similar to the real case |
thanks.yes I mean that you say.then changing groovyBC variables has no effect on the problem when we are at 100th time step.does it?
I have examined groovyBC by replayTransientBC.the trend seems ok. but something takes place that i think must not be related to groovyBC,the BC is updated after 2 or 3 time steps.is it because time steps are lower than reaching the new condition(wall) to next cell?then i should decrease the size of cells more,shouldn't i? |
1)I found this expression when I used replayTransientBC in my groovyBC's:
Code:
evaluateDuringConstruction 0; |
2)after applying replayTransientBC my p in 0 folder look like this.is it ok?or i should set values for refValue and refGradient and valueFraction?
Code:
right thanks. |
any answer is thanked and appreciated.
|
All times are GMT -4. The time now is 02:58. |