|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Alexandre M S Costa
Join Date: Apr 2009
Posts: 31
Rep Power: 18 ![]() |
Hi All,
I want to patch an initial flow field for a given 2D mesh. The field is given by the expression in the attached image. K = 10^5 m^2/s , x is in the [-1,1] km interval, y is in the [-1,1] km interval. The flow is not defined for sqrt(x) < 0.1 km and sqrt(y) < 0.1 km. Any piece of advice of how to setup that is very welcome. Thanks, Alex |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
|
Though you can use UDF for this but that will be an overkill if you have to do it only for one or two cases. So, solution would be to use Custom Field Functions and Registers.
The equations can be defined as CFFs. Then you mark cells using region or iso-values to create various registers. Then do the patching in the registers using CFF. Do note that to use iso-value for creating registers, you need to initialize the case. You can initialize with any values. Registers are nothing but subsets of mesh that are marked based on certain criterion specified by the user. Do it using Adapt but do not click on Adapt. Click on Mark.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
![]() |
![]() |
![]() |
Tags |
initial velocity field |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compressor Simulation using rhoPimpleDyMFoam | Jetfire | OpenFOAM Running, Solving & CFD | 107 | December 9, 2014 13:38 |
calculation stops after few time steps | sivakumar | OpenFOAM Running, Solving & CFD | 7 | March 17, 2013 06:37 |
SLTS+rhoPisoFoam: what is rDeltaT??? | nileshjrane | OpenFOAM Running, Solving & CFD | 4 | February 25, 2013 04:13 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 04:03 |
Error while running rhoPisoFoam.. | nileshjrane | OpenFOAM Running, Solving & CFD | 8 | August 26, 2010 12:50 |