groovyBC and access to alpha field of other patch
Hi all,
I want to get access from alpha field from patch1 to use it in patch2. The problem is that my alpha field does not exist? Code:
type groovyBC;
But always I get an error that this variable does not exist or is of wrong type. Does anyone have some idea? Additionall question: Is it possible to get velocity field U from patch1 and use it for patch2 not in an averaged value? |
Quote:
To find out under which name this field is known you'd have to consult the sources. Or there is a function object listRegisteredObjects that lists all objects currently registered in the registry. One of these objects should be your alpha Quote:
|
Dear Bernhard,
if I use mapped patch type I also get a interpolated velocity field: Code:
smoothSolver: Solving for alpha.liquid, Initial residual = 0, Final residual = 0, No Iterations 0 Code:
internalFacesForGroovyBC_master |
Quote:
|
Hi Bernhard,
many thanks to you. Mapping the velocity field U is working without problems now. I think it knows which patch to map out of the boundary file (sampleRegion or coupleGroup). I will have a look at your mentioned "aliases" to get the alpha field for the further step now. Thank you again. |
All times are GMT -4. The time now is 05:37. |