CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Pre-Processing

Gamma field initialization

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 11, 2005, 12:19
Default Hi, There are times that I
  #1
Pei-Ying Hsieh (Hsieh)
Guest
 
Posts: n/a
Hi,

There are times that I have to initialize gamma field inside a very complex geometry. Has anyone done this?

In FoamX, if I have, say 5 blocks. I want to initialize the gamma field to 1 inside one block. Can I save all the cells inside this block and then read these cells back into FoamX and then set the gammea values of these cells to 1? Is it possible?

Pei
  Reply With Quote

Old   February 12, 2005, 08:55
Default To my knowledge, there is no
  #2
Eugene de Villiers (Eugene)
Guest
 
Posts: n/a
To my knowledge, there is no field initialisation of this kind built into the FoamX GUI. At present, OepnFOAM has no byuilt-in cell types to differentiate one region from another, although it would be easy to add.

Everything you want to do can be achieved through some comparatively simple programming via an application like setGammaDambreak.

E
  Reply With Quote

Old   November 7, 2005, 06:58
Default version 1.2, User Guide 2.3.3,
  #3
Member
 
VVqf
Join Date: Mar 2009
Location: Braunschweig
Posts: 66
Rep Power: 8
vvqf is on a distinguished road
version 1.2, User Guide 2.3.3, U-57
non-uniform
But what about assign different values in different regions for a field variable?

Expecting replies...
vvqf is offline   Reply With Quote

Old   November 7, 2005, 09:39
Default is such function available in
  #4
Member
 
VVqf
Join Date: Mar 2009
Location: Braunschweig
Posts: 66
Rep Power: 8
vvqf is on a distinguished road
is such function available in the new version 1.2?

assign different values in different regions for a field variable? even to each different cell?
vvqf is offline   Reply With Quote

Old   November 7, 2005, 10:02
Default What do you mean different reg
  #5
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 12
eugene is on a distinguished road
What do you mean different regions?

Your best bet is to look at the source of setGammaDambreak (which is really very easy to understand) and modify it to suite your needs.
eugene is offline   Reply With Quote

Old   November 7, 2005, 11:31
Default Hi, VVgf: In version 1.2, y
  #6
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 9
hsieh is on a distinguished road
Hi, VVgf:

In version 1.2, you can use setFields to assign different gamma to different region. The constraint is that the regions cannot be an arbitary shape, it needs to be a box (I do not know if spherical/cylinder works or not). Of course, with the setGammaDamBreak.C, you can do whatever you want.

One other thing is that, I am trying to figure out if one can use cellSets to assign gamma field. But, I do not know how to read in cellSets just yet. This will be the best approach in my opinion because you can export cellSets that you want to assign gamma values from your pre-processor.

Pei
hsieh is offline   Reply With Quote

Old   November 8, 2005, 04:44
Default setFields with 'cellToCell' so
  #7
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
setFields with 'cellToCell' source should be able to set fields from a cellSet.

(setFields uses the same back-end as the 'cellSet' utility)
mattijs is offline   Reply With Quote

Old   November 10, 2005, 09:51
Default I can't find the example. wher
  #8
Member
 
VVqf
Join Date: Mar 2009
Location: Braunschweig
Posts: 66
Rep Power: 8
vvqf is on a distinguished road
I can't find the example. where is the source setGammaDamBreak.C ?

Thanks and sorry to ask to this extent.
vvqf is offline   Reply With Quote

Old   November 10, 2005, 10:21
Default The "setGammaDambreak" utility
  #9
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 12
eugene is on a distinguished road
The "setGammaDambreak" utility appears to have been supersceded by the setFields utility and is no longer in the release. setFields is probably more than adequate for your needs. Its usauge is described in the dambreak tutorial.

If it does not do what you want then of course there are other ways of setting up fields. This involves compiling your own utilities though.
eugene is offline   Reply With Quote

Old   November 10, 2005, 11:07
Default Thank you. http://www.cfd-onli
  #10
Member
 
VVqf
Join Date: Mar 2009
Location: Braunschweig
Posts: 66
Rep Power: 8
vvqf is on a distinguished road
Thank you.
yes, I already applied setFields, it gave me nice esults.

So, if want to go further, I can't be so lazy to expect existing example any more. :Q
vvqf is offline   Reply With Quote

Old   November 10, 2005, 11:44
Default There are plenty of examples o
  #11
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 12
eugene is on a distinguished road
There are plenty of examples on this forum. Search is your friend.
eugene is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange gamma field on wedge case sega OpenFOAM Running, Solving & CFD 5 October 19, 2008 11:45
Gamma field on boundary patch tom OpenFOAM Post-Processing 0 March 23, 2008 07:56
Gamma field initialisation mer OpenFOAM Pre-Processing 0 March 1, 2008 09:12
Putting submesh field values into field on parent mesh helmut OpenFOAM Running, Solving & CFD 2 June 20, 2006 07:31
field initialization using DEFINE_INIT Maziar Mahzari FLUENT 0 September 14, 2005 02:36


All times are GMT -4. The time now is 21:42.