|
[Sponsors] |
May 8, 2011, 00:28 |
How to define multiple boundary field names
|
#1 |
Member
Join Date: Nov 2009
Posts: 65
Rep Power: 16 |
Dear all;
I'd like to know how to define multiple boundary field names in 0/U, 0/p files like bellow (i.e., different patches but physical conditions are the same). The bellow lines are allowable in OF, or there are any other ways? ------- BC1 { type fixed value; value uniform (1 0 0); } BC2 { type fixed value; value uniform (1 0 0); } ------- VVVV ------- BC1 | BC2 <--------- ?????? { type fixed value; value uniform (1 0 0); } ------- Thanks in advance, waku2005 |
|
May 9, 2011, 03:41 |
|
#2 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Quote:
Regular expressions? See "man 7 regex" for syntax. Code:
"BC[0-9]+" { type fixedValue; value uniform (1 0 0); } |
||
May 9, 2011, 08:30 |
|
#4 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Quote:
This property could also be exploited. Armed with these bits of information, there shouldn't be any huge problem. As a final alternative, you could post the condition that you figure cannot be expressed as a regular expression and pay 5 Euros to the first one who can solve it for you |
||
May 9, 2011, 09:28 |
|
#5 | |
Member
Join Date: Nov 2009
Posts: 65
Rep Power: 16 |
Quote:
Regular expression is enaugh for me. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wind turbine simulation | Saturn | CFX | 60 | July 17, 2024 06:45 |
[Gmsh] Import problem | ARC | OpenFOAM Meshing & Mesh Conversion | 0 | February 27, 2010 11:56 |
RPM in Wind Turbine | Pankaj | CFX | 9 | November 23, 2009 05:05 |
Convective Heat Transfer - Heat Exchanger | Mark | CFX | 6 | November 15, 2004 16:55 |
How to define the boundary condition | Merkle | FLUENT | 0 | December 1, 2000 05:01 |