CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [General] using pyFoamCreateBoundaryPatches.py for groovybc (https://www.cfd-online.com/Forums/paraview/182645-using-pyfoamcreateboundarypatches-py-groovybc.html)

yeharav January 15, 2017 10:24

using pyFoamCreateBoundaryPatches.py for groovybc
 
Hi all,

I am trying to use pyFoamCreateBoundaryPatches.py to write groovy bc.
However, the line removes the qoutes (") and so I have to correct it manually.

I am running
pyFoamCreateBoundaryPatches.py --verbose --overwrite --filter="lamp" --default="{'type':'groovyBC','gradientExpression': '-9.81*rhok_tag','fractionExpression':'"0"'}" 0/p_rgh"""

I get:

lamp
{
fractionExpression 0;
gradientExpression -9.81*rhok_tag;
type groovyBC;
}

and not

lamp1
{
fractionExpression "0";
gradientExpression "-9.81*rhok_tag";
type groovyBC;
}


I have tried to put " or just "" but to no avail.

Any ideas?


All times are GMT -4. The time now is 07:51.