|
[Sponsors] | |||||
2 different uniform field initialization in one domain |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
Member
RacMat
Join Date: Jan 2013
Posts: 78
Rep Power: 15 ![]() |
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 ! |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 13 ![]() |
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 05:49 |
| [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 |