CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

How to write udf to read electromagnetic data as the source term load to Fluent

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 12, 2018, 04:04
Default 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
maisui1993 is on a distinguished road
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?
maisui1993 is offline   Reply With Quote

Old   June 13, 2018, 22:07
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
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
`e` is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 17:04.