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

How to intialize gamma in a specified Zone

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 11, 2007, 05:04
Default I have imported a 2D mesh from
  #1
New Member
 
Christofer Ivarsson
Join Date: Mar 2009
Posts: 21
Rep Power: 17
cricke is on a distinguished road
I have imported a 2D mesh from Gambit with the argument -writeZones. I now want to initialize a value in the specified Zone using a clone of the dambreak case. How do I refer to the zone (as when setting a porous zone)instead of a box as they do in the damBreak case? My zone is specified under polymesh in cellZones and faceZones.


I have tried to replace the 'boxToCell' with the zone name but without progress. Can anyone tell my how to write the setFieldsDict?

defaultFieldValues
(
volScalarFieldValue gamma 0
volVectorFieldValue U (0 0 0)
);

regions
(
boxToCell
{
box (0 0 -1) (0.1461 0.292 1);

fieldValues
(
volScalarFieldValue gamma 1
);
}
);


/Christofer
cricke is offline   Reply With Quote

Old   December 11, 2007, 05:17
Default Use the setFields utility just
  #2
Member
 
Prashant Ojha
Join Date: Mar 2009
Posts: 38
Rep Power: 17
prashant24983 is on a distinguished road
Use the setFields utility just like you use any other utility.

In the console when you type setFields you will be able to see the format.

$ setFields /user/OpenFoam/run/tutorial damBreak

Then check the gamma in paraFoam.
prashant24983 is offline   Reply With Quote

Old   December 11, 2007, 05:23
Default Hi I have run the setFields a
  #3
New Member
 
Christofer Ivarsson
Join Date: Mar 2009
Posts: 21
Rep Power: 17
cricke is on a distinguished road
Hi
I have run the setFields and they suggest several commands:

(
pointToCell
boxToCell
zoneToPoint
surfaceToCell
nearestToCell
zoneToCell
cellToFace
pointToFace
normalToFace
boxToFace
rotatedBoxToCell
fieldToCell
cellToPoint
zoneToFace
nbrToCell
patchToFace
labelToCell
pointToPoint
faceToCell
boxToPoint
labelToPoint
boundaryToFace
faceToPoint
labelToFace
shapeToCell
faceToFace
cellToCell
surfaceToPoint
)

Which one shall i use and how do I edit my setFieldsDict? The Zone-name is 'Mesa' and I have tried the following without success:

defaultFieldValues
(
volScalarFieldValue gamma 0
volVectorFieldValue U (0 0 0)
);

regions
(
faceToCell

Mesa

{

fieldValues
(
volScalarFieldValue gamma 1
);
}
);
cricke is offline   Reply With Quote

Old   July 31, 2011, 05:45
Default creating volume zones with alpha1
  #4
New Member
 
Join Date: Apr 2011
Posts: 10
Rep Power: 14
MikeyMike is on a distinguished road
Dear Christofer,

did you manage to solve the problem??
I am very interested in the outgoing of your application!

Here is the link to my posted problem, maybe you can see the relation and give me a hint:
http://www.cfd-online.com/Forums/ope...ing-faces.html

Currently I am trying to set volume zones within my mesher Icem (Ansys) to write them in with -writeZones during the transfer to OF.
How can I relate to them afterwards and how can I set Alpha1 to 1 in my desired volume zone??

Thank you very much for helping!
Greetings, Markus.
MikeyMike is offline   Reply With Quote

Reply


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
How to patch a different gamma zone in the lesInterFoam waynezw0618 OpenFOAM Running, Solving & CFD 0 December 5, 2006 01:36
How to patch a different gamma zone in the lesInterFoam waynezw0618 OpenFOAM Running, Solving & CFD 0 December 5, 2006 01:33
how to define a local zone in whole fluid zone? Lcw FLUENT 3 September 21, 2004 08:33
how to pass bc from one zone to second zone Maria FLUENT 2 March 15, 2004 23:12
how to change inteior zone into fluid zone zwdi FLUENT 3 March 2, 2004 20:25


All times are GMT -4. The time now is 01:08.