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

Setting volume fraction in a specific block?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 28, 2011, 19:50
Default Setting volume fraction in a specific block?
  #1
New Member
 
Jeff Perry
Join Date: Sep 2010
Posts: 2
Rep Power: 0
tbolt427 is on a distinguished road
Hi All

I have a basic question that I can't seem to figure out in the docs. I have a domain consisting of two blocks. For the interFoam examples, setFieldsDict always uses boxToCell to set non-default values for alpha1. That is,

regions
(
boxToCell
{
box (0 0 -1) (0.1461 0.292 1);
fieldValues
(
volScalarFieldValue alpha1 1
);
}
);

Is there a method to set alpha1 in a block that has been defined in blockMeshDict?

Thanks
tbolt427 is offline   Reply With Quote

Old   March 1, 2011, 08:11
Default
  #2
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
search in wiki about funkySetField it gave more option
nimasam is offline   Reply With Quote

Old   March 1, 2011, 09:23
Default
  #3
New Member
 
Jeff Perry
Join Date: Sep 2010
Posts: 2
Rep Power: 0
tbolt427 is on a distinguished road
Thanks for the reply. I'll look at the wiki.

I thought about writing code to setup 0/alpha1 but it doesn't seem that it is simple to figure out which cells belong to a given block.

Again, thanks for the tip.
tbolt427 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
multiphase... solid volume fraction anomaly Tim CFX 4 February 14, 2012 05:01
about compresive phase James CFX 10 September 12, 2006 03:16
Two-Phase Buoyant Flow Issue Miguel Baritto CFX 4 August 31, 2006 12:02
How to apply negtive pressure to outlet bioman66 CFX 5 June 3, 2006 01:40
Help! Where is the URF for volume fraction? gogo FLUENT 0 January 23, 2006 16:08


All times are GMT -4. The time now is 18:35.