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

how to use setFields in multiregionsolver

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By karlvirgil

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   August 1, 2012, 04:37
Default how to use setFields in multiregionsolver
  #1
Member
 
jack
Join Date: Jul 2011
Posts: 52
Rep Power: 14
lg88 is on a distinguished road
Hello everyone
I am simulating a FSI problem with multiregionsolver.In my case,there are only two regions, solid and fluid.Now I want to use the function setFields to set a quantity ,for example initial volume fraction, in fluid region.
I tried to put the setFieldsDict file in system/fluid floder,then run
Code:
setFields -region solid
or
Code:
setFields
And it failed.

The following is the details of the file setFieldsDict in my case:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

defaultFieldValues
(
volScalarFieldValue sigma 2
);

regions
(
boxToCell
{
box (-1.1 -1.1 0) (-1.0 1.1 5);
fieldValues
(
volScalarFieldValue sigma 0.01
);
}

boxToCell
{
box (1.0 -1.1 0) (1.1 1.1 5);
fieldValues
(
volScalarFieldValue sigma 0.01
);
}
);

// ************************************************** **** //

So where should I put the setFieldsDict and how to modified it?

regards!

lg88
lg88 is offline   Reply With Quote

 

Tags
setfields


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
setFields not working dsanza OpenFOAM 4 October 18, 2018 09:43
Problems with the execution of the setFields utility. foamer OpenFOAM Pre-Processing 5 June 3, 2013 12:24
setFields tool does not assign water volume for given mesh. paka OpenFOAM 2 June 7, 2012 09:17
OF 1.6-ext setFields does not keep patch values Arnoldinho OpenFOAM Bugs 3 May 9, 2012 03:58
question on setFields fijinx OpenFOAM Running, Solving & CFD 1 February 15, 2010 15:07


All times are GMT -4. The time now is 09:58.