CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   pyFoamClearBoundaryValue.py with vectors (https://www.cfd-online.com/Forums/openfoam-pre-processing/219999-pyfoamclearboundaryvalue-py-vectors.html)

Carlo_P August 20, 2019 06:21

pyFoamClearBoundaryValue.py with vectors
 
Hey,
I found lots of interesting utilities called pyFoam...


One of this (pyFoamClearBoundaryValue.py ), allows the change of the value in the BC in a very fast way.


For example, if I would like to change the oemga value, I can simply write:

pyFoamClearBoundaryValue.py 0/omega Inlet --value 5


The problem is that I don't know how to manage vetor.


I tried to use



  • pyFoamClearBoundaryValue.py 0/U Inlet --value 5 0 0
  • pyFoamClearBoundaryValue.py 0/U Inlet --value (5 0 0)
Any other idea?


Thanks a lot,
Cheers,
Carlo

Carlo_P August 21, 2019 09:29

After different test, I found the correct way.


pyFoamClearBoundaryValue.py 0/U Inlet --value "(5 0 0)"


This works!


All times are GMT -4. The time now is 05:12.