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

setFieldsDict

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 15, 2015, 18:27
Default setFieldsDict
  #1
New Member
 
Luis
Join Date: Nov 2015
Posts: 2
Rep Power: 0
LVega is on a distinguished road
Hi,

I want to assign in a square pipe a variable, B, that is 15 between the meters 1 and 4 and 0 in the rest of the pipe. I did as follows:

setFieldsDict

defaultFieldValues
(
volScalarFieldValue B 0
);

regions
(
boxToCell
{
box (1 0 0) (4 1 1);
fieldValues
(
volScalarFieldValue B 15
);
}
);

B

internalField uniform 0;

boundaryField
{
Inlet
{
type zeroGradient;
}
Outlet
{
type zeroGradient;
}

WallsA
{
type zeroGradient;
}

WallsB
{
type zeroGradient;
}

}

The value of B is 0 in all the pipe.

Can anyone tell me what did I do wrong?
LVega 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
setFieldsDict, alpha1, free surface, wigley kolloff OpenFOAM Pre-Processing 10 April 3, 2015 05:05
[swak4Foam] Using swak4Foam in setFieldsDict RAUL OpenFOAM Community Contributions 2 October 17, 2014 09:57
SetfieldsDict in the multiphaseInterFoam salame OpenFOAM Running, Solving & CFD 4 October 22, 2013 10:17
SetFieldsDict: Non uniform density physics1 OpenFOAM Running, Solving & CFD 1 May 8, 2013 16:35
Bogus setFieldsDict in damBreak4phase{,Fine} tutorial cases mwild OpenFOAM Bugs 1 August 10, 2010 09:36


All times are GMT -4. The time now is 00:06.