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

2 different uniform field initialization in one domain

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 5, 2015, 23:50
Default 2 different uniform field initialization in one domain
  #1
Member
 
RacMat
Join Date: Jan 2013
Posts: 77
Rep Power: 8
rvl565 is on a distinguished road
Hi,

I was wondering if there is any way to have half of a 2D rectangular domain have a uniform field value and the other half have another uniform value. for example. Say if I have a 2X2 square 2D domain. I want the top half that is y>1 to have temperature 300Kelvin and the bottom half that is y<1 to have 280K.
Thanks !
rvl565 is offline   Reply With Quote

Old   December 6, 2015, 01:40
Smile
  #2
Senior Member
 
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 6
rapierrz is on a distinguished road
Hello RacMat,

You can use of funkySetField in swak4Foam package and define two field for

your field for example :

for Temperature field:

internalFields
{
field T;
expression "300";
condition "pos().y>1";
keepPatches 1;
}

internalFields
{
field T;
expression "280";
condition "pos().y<1";
keepPatches 1;
}
rapierrz is offline   Reply With Quote

Reply

Tags
initialization, openfoam, uniform field

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
problems after decomposing for running alessio.nz OpenFOAM 6 December 23, 2015 15:27
[snappyHexMesh] Layers:problem with curvature giulio.topazio OpenFOAM Meshing & Mesh Conversion 10 August 22, 2012 10:03
Need help with boundary conditions: open to atmosphere Wolle OpenFOAM 2 April 11, 2011 08:32
Problems with Turbulence Modeling ezsoal OpenFOAM Running, Solving & CFD 4 November 26, 2009 16:12
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51


All times are GMT -4. The time now is 01:38.