|
[Sponsors] |
Nonuniform initial condition using cellSetDict |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 24, 2008, 10:13 |
Hi,
I'm trying to set diffe
|
#1 |
New Member
Rina Oldek
Join Date: Mar 2009
Posts: 5
Rep Power: 17 |
Hi,
I'm trying to set different initial conditions for a set of cells. In the interFoam example, the boxToCell rule was used, hoewver, in my problem the boundary is not rectangular but rather circular. What are the exact command lines that I should write in the setCellDict? Should I specify each cell explicitly? Thanks, Rina |
|
October 22, 2008, 05:46 |
Hi Kathrin,
Thanks for your m
|
#2 |
New Member
Rina Oldek
Join Date: Mar 2009
Posts: 5
Rep Power: 17 |
Hi Kathrin,
Thanks for your mail. I have another question: if the blocks have a cyclic side, which command should I use? The code that you sent is for a sphere, which is not the case for me. The block has 3 straight lines and one is cyclic. How should I write the initial conditions? Thanks again, Rina |
|
June 22, 2009, 07:31 |
|
#3 |
Senior Member
isabel
Join Date: Apr 2009
Location: Spain
Posts: 171
Rep Power: 17 |
I am changing the interFoam tutorial to define a sphere of ratio 1 as initial condition. Does anybody know the error in this setFieldsDict file?
FoamFile { version 2.0; format ascii; class dictionary; object setFieldsDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // defaultFieldValues ( volScalarFieldValue gamma 0 volVectorFieldValue U (0 0 0) ); regions ( sphereToCell { sphere (0 0 0) (0 0 1); fieldValues ( volScalarFieldValue gamma 1 ); } ); // ************************************************** *********************** // |
|
November 26, 2009, 09:03 |
Answer
|
#4 |
New Member
Join Date: Nov 2009
Posts: 1
Rep Power: 0 |
Correct is that syntax:
sphereToCell { centre (0.02 0.135 0); radius 0.01; fieldValues ( volScalarFieldValue gamma 1 ); } |
|
November 9, 2011, 12:30 |
|
#5 |
New Member
Concordia_CFD
Join Date: Jul 2010
Location: Canada
Posts: 24
Rep Power: 16 |
Hello all,
does sphereToCell work the same way in 2D axisymmetric cases? The thing is that i want to patch a droplet with this syntax in setFieldsDict, but I get a cylinder instead of a droplet!! I tried funky function and cellSetDict but I got the same cylinder. Any help is greatly appreciated, thank you. Marzbali |
|
January 8, 2013, 13:53 |
|
#6 |
New Member
Hossein Yahyazadeh
Join Date: Oct 2012
Posts: 9
Rep Power: 14 |
Hi every body,
could somebody help me to set an elliptic drop instead? thanx |
|
January 9, 2013, 01:42 |
|
#7 |
Senior Member
Daniele Vicario
Join Date: Mar 2009
Location: Novara, Italy
Posts: 142
Rep Power: 17 |
I've never use it but funkySetFields should work.
See http://openfoamwiki.net/index.php/Co...funkySetFields example at point 5. In 3D you can use the ellipsoid equation http://en.wikipedia.org/wiki/Ellipsoid Regards,
__________________
Daniele Vicario blueCFD2.1 - Windows 7 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Specifying nonuniform initial condition | msyaml | OpenFOAM Running, Solving & CFD | 65 | April 25, 2016 05:23 |
Specifying nonuniform boundary condition | maka | OpenFOAM Running, Solving & CFD | 59 | October 22, 2014 15:52 |
Initial Condition | Tang Kuei | FLUENT | 0 | May 17, 2006 20:54 |
Nonuniform gradient boundary condition | ankgupta8um | OpenFOAM Running, Solving & CFD | 1 | March 14, 2006 02:34 |
Nonuniform initial conditions | nico | OpenFOAM Pre-Processing | 2 | January 4, 2006 07:37 |