|
[Sponsors] |
December 11, 2007, 06:04 |
I have imported a 2D mesh from
|
#1 |
New Member
Christofer Ivarsson
Join Date: Mar 2009
Posts: 21
Rep Power: 17 |
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 |
|
December 11, 2007, 06:17 |
Use the setFields utility just
|
#2 |
Member
Prashant Ojha
Join Date: Mar 2009
Posts: 38
Rep Power: 17 |
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. |
|
December 11, 2007, 06:23 |
Hi
I have run the setFields a
|
#3 |
New Member
Christofer Ivarsson
Join Date: Mar 2009
Posts: 21
Rep Power: 17 |
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 ); } ); |
|
July 31, 2011, 06:45 |
creating volume zones with alpha1
|
#4 |
New Member
Join Date: Apr 2011
Posts: 10
Rep Power: 15 |
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. |
|
|
|
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 02:36 |
How to patch a different gamma zone in the lesInterFoam | waynezw0618 | OpenFOAM Running, Solving & CFD | 0 | December 5, 2006 02:33 |
how to define a local zone in whole fluid zone? | Lcw | FLUENT | 3 | September 21, 2004 09:33 |
how to pass bc from one zone to second zone | Maria | FLUENT | 2 | March 16, 2004 00:12 |
how to change inteior zone into fluid zone | zwdi | FLUENT | 3 | March 2, 2004 21:25 |