|
[Sponsors] |
How to write udf to read electromagnetic data as the source term load to Fluent |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 12, 2018, 04:04 |
How to write udf to read electromagnetic data as the source term load to Fluent
|
#1 |
New Member
maisui
Join Date: Jun 2018
Posts: 7
Rep Power: 8 |
Hi:
I have a question, I want to write udf read electromagnetic data (has Coordinates and variables)as the source term load to Fluent,dose everyone know how to that? |
|
June 13, 2018, 22:07 |
|
#2 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
First, the electromagnetic data should be imported onto the grid using interpolation and stored in memory with C_UDMI (each cell stores its electromagnetic value). Assuming that this electromagnetic data is constant throughout the simulation, this first step should be applied with a macro such as DEFINE_INIT (run once at initialisation), to avoid repeating calculations and I/O to the data file. Second, the electromagnetic values can be retrieved with C_UDMI within the DEFINE_SOURCE macro.
Further reading: Fluent UDF to interpolate material properties from Temp and Pressure dependent table |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
(ask) how to create UDF for inlet velocity profile | sincity | Fluent UDF and Scheme Programming | 83 | May 16, 2022 14:04 |
udf for one dimensional linear motion based on force | maccheese | Fluent UDF and Scheme Programming | 2 | September 1, 2019 03:18 |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 08:37 |
How can i create a UDF file? | aykut1c | FLUENT | 2 | March 22, 2017 10:27 |
How to create a UDF | Sean | FLUENT | 1 | June 12, 2008 00:39 |