|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Join Date: May 2020
Posts: 23
Rep Power: 6 ![]() |
Dear all,
Is It possible in Fluent to include a flag/domain check to apply the UDF only if a condition is fulfilled and then make the change more specific ? For instance, if I use a DEFINE_TURBULENT_VISCOSITY in a Stress-Blended Eddy Simulation, can I only use this UDF to modify the turbulent viscosity for the RANS part and not the LES one (without hardcoding a subgrid scale viscosity model with a if{..}else{...} statement) ? Thanks ! |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 ![]() ![]() |
how are you going to use condition statement without if{..}else{...} ?
using journal file (or scheme) you may turn on/off sources (as as you would do it manually in GUI) may be this is a way out for you
__________________
best regards ****************************** press LIKE if this message was helpful |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Join Date: May 2020
Posts: 23
Rep Power: 6 ![]() |
What I meant by no if{...}else{...} was to not hardcoding the turbulent viscosity (sub grid scale) model for the LES but rather something like :
IF(condition fulfilled){use DEFINE_TURBULENT_VISCOSITY} ELSE{do not use DEFINE_TURBULENT_VISCOSITY} I'll have a look to scheme Thanks |
|
![]() |
![]() |
![]() |
Tags |
udf and programming |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
cell zone creation for degassing udf implementation | shahjehan | Fluent UDF and Scheme Programming | 0 | August 3, 2016 11:30 |
Error in solution using "Grid Interface" | agustinvo | FLUENT | 4 | January 20, 2015 12:03 |
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) | cfdonline2mohsen | OpenFOAM | 3 | October 21, 2013 09:28 |
How to stop diffusion and advection in a zone for selected species. | hda | FLUENT | 0 | March 18, 2012 23:59 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 12:21 |