|
[Sponsors] |
2 different uniform field initialization in one domain |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 5, 2015, 22:50 |
2 different uniform field initialization in one domain
|
#1 |
Member
RacMat
Join Date: Jan 2013
Posts: 78
Rep Power: 13 |
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 ! |
|
December 6, 2015, 00:40 |
|
#2 |
Senior Member
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11 |
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; } |
|
Tags |
initialization, openfoam, uniform field |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problems after decomposing for running | alessio.nz | OpenFOAM | 7 | March 5, 2021 04:49 |
[snappyHexMesh] Layers:problem with curvature | giulio.topazio | OpenFOAM Meshing & Mesh Conversion | 10 | August 22, 2012 09:03 |
Need help with boundary conditions: open to atmosphere | Wolle | OpenFOAM | 2 | April 11, 2011 07:32 |
Problems with Turbulence Modeling | ezsoal | OpenFOAM Running, Solving & CFD | 4 | November 26, 2009 15:12 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 06:51 |