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

using setFields Dict

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   November 15, 2010, 16:54
Default using setFields Dict
  #1
Member
 
Sandeep
Join Date: Jul 2010
Posts: 48
Rep Power: 15
gandesk is on a distinguished road
As per the dam example in the below link, the requirement is to create a rectangle block setFields. How to create other shapes?? Is there any documentation for creating other required shapes.

http://www.openfoam.com/docs/user/da...hp#x7-500002.3

First of all I didnot understand how did he define the rectangle block in the above example. It would be great if anyone can help me in that.

Also I would like to create a semi circular shape for my case in my 2-D Axisymmetric domain. My domain is in the shape of a wedge to consider axi symmetric case. I am including my blockMeshDict file if you want to look at my mesh.

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.7.1 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 0.001;

vertices
(
(-2 0 0)
(0 0 0)
(-2 1.5 -0.0327457)
(0 1.5 -0.0327457)
(-2 1.5 0.0327457)
(0 1.5 0.0327457)
);

blocks
(
hex (0 1 3 2 0 1 5 4) (100 75 1) simpleGrading (1 1 1)
);

edges
(
);

patches
(
patch side
(
(0 0 4 2)

)
patch up
(
(2 4 5 3)

)
wall Fixedwall
(
(1 3 5 1)

)
empty axis
(
(0 1 1 0)

)
wedge front
(
(0 1 5 4)
)
wedge back
(
(0 2 3 1)
)
);

mergePatchPairs
(
);

// ************************************************** *********************** //

Any help would be greatly appreciated!!
gandesk is offline   Reply With Quote

 


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
Problem with setFields: "wrong token type - expected word" svevo OpenFOAM Pre-Processing 11 September 26, 2020 04:02
InterFoam - setFields for a non-rectangular 3D domain Ak_cfd OpenFOAM Running, Solving & CFD 24 July 25, 2020 21:16
SetFields runs with no errors but doesnbt change fields adamsview OpenFOAM Pre-Processing 3 December 12, 2014 21:03
question on setFields fijinx OpenFOAM Running, Solving & CFD 1 February 15, 2010 15:07
InterDyMFoam and problem with setFields chris_sev OpenFOAM Running, Solving & CFD 1 March 23, 2009 21:23


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