I have imported a 2D mesh from
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 |
Use the setFields utility just
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. |
Hi
I have run the setFields a
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 ); } ); |
creating volume zones with alpha1
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. |
All times are GMT -4. The time now is 01:03. |