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

Nonuniform initial condition using cellSetDict

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 24, 2008, 10:13
Default Hi, I'm trying to set diffe
  #1
New Member
 
Rina Oldek
Join Date: Mar 2009
Posts: 5
Rep Power: 17
rinao is on a distinguished road
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
rinao is offline   Reply With Quote

Old   October 22, 2008, 05:46
Default Hi Kathrin, Thanks for your m
  #2
New Member
 
Rina Oldek
Join Date: Mar 2009
Posts: 5
Rep Power: 17
rinao is on a distinguished road
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
rinao is offline   Reply With Quote

Old   June 22, 2009, 07:31
Default
  #3
Senior Member
 
isabel
Join Date: Apr 2009
Location: Spain
Posts: 171
Rep Power: 17
isabel is on a distinguished road
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
);
}
);


// ************************************************** *********************** //
isabel is offline   Reply With Quote

Old   November 26, 2009, 09:03
Default Answer
  #4
New Member
 
Join Date: Nov 2009
Posts: 1
Rep Power: 0
Markus_S is on a distinguished road
Correct is that syntax:


sphereToCell
{
centre (0.02 0.135 0);
radius 0.01;
fieldValues
(
volScalarFieldValue gamma 1
);
}
Markus_S is offline   Reply With Quote

Old   November 9, 2011, 12:30
Default
  #5
New Member
 
Concordia_CFD
Join Date: Jul 2010
Location: Canada
Posts: 24
Rep Power: 16
marzbali is on a distinguished road
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
marzbali is offline   Reply With Quote

Old   January 8, 2013, 13:53
Default
  #6
New Member
 
Hossein Yahyazadeh
Join Date: Oct 2012
Posts: 9
Rep Power: 14
hossein_y62 is on a distinguished road
Hi every body,
could somebody help me to set an elliptic drop instead?
thanx
hossein_y62 is offline   Reply With Quote

Old   January 9, 2013, 01:42
Default
  #7
Senior Member
 
Daniele Vicario
Join Date: Mar 2009
Location: Novara, Italy
Posts: 142
Rep Power: 17
danvica is on a distinguished road
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
danvica 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
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


All times are GMT -4. The time now is 17:39.