how can use a property at a point in groovyBC?
i want to use value of pressure at a point to set a boundary condition.more clear i need to set a p0,T0 boundary condition when shock is reached at the end of the channel.what command shouldp i use at fractionExpression?
|
Quote:
|
Hello, I have more or less the same problem.
I would like to set the pressure on a patch equal to a fraction of the pressure in a specific point inside the domain. So far I was not able to finish the job just by looking at the fillingTheDam example. Below is what I have done so far. file 0/p: Code:
myPatch Code:
functions |
Quote:
Code:
pInside{set'insidePoint}=average(p); |
First of all thanks a lot for your answer, it was very helpful.
I have changed the pressure file as follows: Code:
myPatch If I understand correctly, the average function indicates an averaging of the pressure values of the cells around the point only, right? |
Quote:
Quote:
|
Hi Bernhard,
Sorry, I am a bit late on this thread, but I have the same problem. I want to find out the value of alpha variable for a velocity boundary condition in openfoam and I need the value of alpha variable on the neighbouring face center. I know from documentation that I can find out the face center of the neighbouring cell using fn(), but can I use this information to find out value of alpha on that cell face for a velocity boundary condition? Regards, Hrushikesh |
All times are GMT -4. The time now is 23:31. |