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

setFields not working

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By dsanza
  • 3 Post By zwlwf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 14, 2011, 09:14
Default setFields not working
  #1
New Member
 
Diego Sanz
Join Date: Aug 2011
Posts: 9
Rep Power: 15
dsanza is on a distinguished road
Hi, i am simulating a water channel and got a problem with setFields.

when i run setfields, it doesn't report any mistakes.

Create time
Create mesh for time = 0
Reading setFieldsDict
Setting field default values
Setting internal values of volScalarField alpha1

Setting field region values
Adding cells with center within box (-100 -100 -100) (100 100 100)
Setting internal values of volScalarField alpha1

End


however, it doesn't write any cel data in alpha1, it only changes the internalField value from 0 to 1

this is my setFieldsDict

defaultFieldValues
(
volScalarFieldValue alpha1 0
);

regions
(
boxToCell
{
box (-100 -100 -100) (100 100 100);
fieldValues
(
volScalarFieldValue alpha1 1
);
}
);



this is my alpha1 file before running setFields

dimensions [0 0 0 0 0 0 0];
my
internalField uniform 0;

boundaryField
{
wall
{
type zeroGradient;
}

pumpe1
{
type inletOutlet;
inletValue uniform 1;
value uniform 1;
}
pumpe2
{
type inletOutlet;
inletValue uniform 1;
value uniform 1;
}
pumpe3
{
type inletOutlet;
inletValue uniform 1;
value uniform 1;
}
pumpe4
{
type inletOutlet;
inletValue uniform 1;
value uniform 1;
}
kanal1
{
type inletOutlet;
inletValue uniform 1;
value uniform 1;
}
kanal2
{
type inletOutlet;
inletValue uniform 1;
value uniform 1;
}
kanal3
{
type inletOutlet;
inletValue uniform 1;
value uniform 1;
}
kanalrest
{
type inletOutlet;
inletValue uniform 1;
value uniform 1;
}


atmosphere
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}

}

it can't be something that difficult, it has to be a mistake i made! i have a similar test case working!

thank you very much for your help!

Diego
dsanza is offline   Reply With Quote

Old   September 14, 2011, 09:45
Default
  #2
Senior Member
 
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16
mgdenno is on a distinguished road
Is your entire domain inside your setFields box?
mgdenno is offline   Reply With Quote

Old   September 14, 2011, 10:00
Default
  #3
New Member
 
Diego Sanz
Join Date: Aug 2011
Posts: 9
Rep Power: 15
dsanza is on a distinguished road
i tried different boxes for setFields, none were working. now i just tried to define the corners of the boxes the other way arround and suddenly it worked! no idea why it shouldnt work the other way arround!

thank you
kmou likes this.
dsanza is offline   Reply With Quote

Old   July 10, 2017, 04:23
Default
  #4
New Member
 
Alice
Join Date: Jun 2017
Posts: 26
Rep Power: 9
yangzhuan is on a distinguished road
Quote:
Originally Posted by dsanza View Post
i tried different boxes for setFields, none were working. now i just tried to define the corners of the boxes the other way arround and suddenly it worked! no idea why it shouldnt work the other way arround!

thank you


My setFields is also no work. No matter how to change the boxToCell, there is nothing. So what should I do?
thank you in advance!
yangzhuan is offline   Reply With Quote

Old   October 18, 2018, 10:43
Default
  #5
New Member
 
Weiliang Zhu
Join Date: Apr 2016
Posts: 11
Rep Power: 11
zwlwf is on a distinguished road
Quote:
Originally Posted by yangzhuan View Post
My setFields is also no work. No matter how to change the boxToCell, there is nothing. So what should I do?
thank you in advance!
Be sure that x1<x2, y1<y2, z1<z2, when you define region like : box (x1 y1 z1) ( x2 y2 z2) .
kindle, casseer15 and JuRe09 like this.
zwlwf 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
InterFoam - setFields for a non-rectangular 3D domain Ak_cfd OpenFOAM Running, Solving & CFD 24 July 25, 2020 22:16
setFields tool does not assign water volume for given mesh. paka OpenFOAM 2 June 7, 2012 10:17
DPM parallel is not working but serial is working johnwinter FLUENT 1 March 27, 2012 03:01
Help required on working of Micro-oven aero CFX 4 January 19, 2007 09:21
Help required on working of Woven aero FLUENT 0 January 16, 2007 07:25


All times are GMT -4. The time now is 11:32.