|
[Sponsors] |
September 20, 2024, 05:57 |
UDF syntax/usage
|
#1 |
Member
Join Date: Aug 2021
Posts: 60
Rep Power: 5 |
Hello all,
I recently started dealing with UDFs and am a little confused by the syntax/implementation. In particular, I've been using some DEFINE_SOURCE macros, and don't fully understand the 'dS' and 'eqn' inputs. For example: DEFINE_SOURCE(some_name, c, t, dS, eqn) I checked the UDF manual but it still isn't clear to me what the last two actually do. By setting dS = 0 we linearise this source term for convergence, which makes sense. What is the 'equation number' though? I have seen in other UDFs things like dS[D_P] = 0 - I can't find anything about this anywhere online. I've been told D_ indicates a derivative, but what does this statement even mean? Is this saying that the pressure derivative in the source term is zero or something? On another note, does anyone know what DEFINE_SOURCE_AE means? I can't find a single reference to this anywhere, I assume it's some old macro notation... Cheers! |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
udf for one dimensional linear motion based on force | maccheese | Fluent UDF and Scheme Programming | 2 | September 1, 2019 03:18 |
Save output of udf in another udf! | JuanJoMex | FLUENT | 0 | February 8, 2018 13:43 |
UDF Compilation Error - Loading Library - COMMON Problem! Help! | robtheslob | Fluent UDF and Scheme Programming | 8 | July 24, 2015 01:53 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |