|
[Sponsors] |
UDF for Defining different Diffusivity for different Cellzones |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 4, 2022, 05:44 |
UDF for Defining different Diffusivity for different Cellzones
|
#1 |
New Member
Joe
Join Date: Jan 2022
Posts: 13
Rep Power: 4 |
Hello all,
I have a problem in defining diffusivity. I want to define two different diffusion coefficients in two different cell zones. For this I use the following UDF: Code:
DEFINE_DIFFUSIVITY(diffusion, c, t, i) { Domain* d; Thread * tc1, * tc2; d = Get_Domain(1); tc1 = Lookup_Thread(d, 8); tc2 = Lookup_Thread(d, 9); if (t == tc1) { diffusivity = 1e-7; } else if (t == tc2) { diffusivity = 1e-5; } return diffusivity; } Many thanks in advance. Many greetings Joe |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
udf for valve closing a pipe using dynamic mesh | chem engineer | Fluent UDF and Scheme Programming | 2 | May 13, 2017 09:39 |
UDF for anisotropic diffusivity | Zerzura | Fluent UDF and Scheme Programming | 2 | December 20, 2015 09:37 |
UDF Fluent binary diffusivity (stefan Maxwell) | natantyt | Fluent UDF and Scheme Programming | 0 | September 19, 2011 11:42 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 04:01 |
UDF, defining diffusivity | Szasz Robert | FLUENT | 0 | March 10, 2000 06:46 |