CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

substitute patch name

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 6, 2013, 07:55
Default substitute patch name
  #1
New Member
 
Marco Müller
Join Date: Feb 2013
Location: Germany
Posts: 23
Rep Power: 13
marco.müller is on a distinguished road
Hi,

is it possible to substitute patch names in boundary condition files, so I only have to enter them once in an include-file. If I try the following it does not work:

"include-file", i. e.:

flowVelocity (0 0 -10);
pressure 0;
turbulentKE 0.24;
turbulentOmega 1.78;
xyz patchname-from-snappy;
#inputMode merge


boundary condition file, i. e. "p":

#include "include/initialConditions"

dimensions [0 2 -2 0 0 0 0];

internalField uniform $pressure;

boundaryField
{

...

$xyz
{
type zeroGradient;
}
}



Thanks
Marco
marco.müller is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
y+ and u+ values with low-Re RANS turbulence models: utility + testcase florian_krause OpenFOAM 114 August 23, 2023 06:37
[GAMBIT] periodic faces not matching Aadhavan ANSYS Meshing & Geometry 6 August 31, 2013 12:25
CheckMeshbs errors ivanyao OpenFOAM Running, Solving & CFD 2 March 11, 2009 03:34
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 09:19
Multicomponent fluid Andrea CFX 2 October 11, 2004 06:12


All times are GMT -4. The time now is 21:15.