CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   define remaining patches as wall (http://www.cfd-online.com/Forums/openfoam-pre-processing/104122-define-remaining-patches-wall.html)

camoesas July 3, 2012 11:30

define remaining patches as wall
 
HI Everybody,

I have a big domain with a lot of patches. I give the boundary values for Inlet and outlet for all variables in the "0" time directory. Now I am looking for a possibility to assign the remaining patches automatically as wall. Is there a possibility? This would save me a lot of typing. :rolleyes:


Thanks Camoesas

gschaider July 7, 2012 13:05

Quote:

Originally Posted by camoesas (Post 369549)
HI Everybody,

I have a big domain with a lot of patches. I give the boundary values for Inlet and outlet for all variables in the "0" time directory. Now I am looking for a possibility to assign the remaining patches automatically as wall. Is there a possibility? This would save me a lot of typing. :rolleyes:


Thanks Camoesas

The User Guide fails to mention it (at least I didn't find it), but you can have regular expressions as dictionary keys: You just have to enclose the expression in ". So "wall_.*" would fit wall_01, wall_13, ....

I think that would solve your problem. Have a look at the tutorials. I THINK the motorCycle-case uses it


All times are GMT -4. The time now is 18:32.