|
[Sponsors] |
July 11, 2023, 00:15 |
Problem with mhd udf
|
#1 |
New Member
niming
Join Date: Jul 2023
Posts: 5
Rep Power: 3 |
I plan to use fluent to do a simulation of magnetic fluid power generation, which needs to be written through udf, but there is no reference file, so I can't write it. Can someone please give me some guidance?
Thank you!!! |
|
July 11, 2023, 05:52 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
search for published papers regarding this topic.
you may need to control momentum and sources through UDF read ansys fluent customization manual
__________________
best regards ****************************** press LIKE if this message was helpful |
|
July 11, 2023, 05:58 |
|
#3 |
New Member
niming
Join Date: Jul 2023
Posts: 5
Rep Power: 3 |
Thank you. I have also read related papers to add Lorenz force source term to momentum equation and Joule heat source term to energy equation, but I am not sure how to write the corresponding udf
|
|
July 22, 2023, 14:52 |
Source UDF?
|
#4 |
Member
Thamilmani M
Join Date: Sep 2017
Location: IIT Bombay, Mumbai
Posts: 52
Rep Power: 9 |
This is what I have been doing for modelling source terms. So, I hope this helps.
1. First Find any DEFINE_SOURCE () example UDF from UDF Manual and see if you can properly compile and load it just to learn how to work with UDFs. 2. Once your source term is known from your literature, break them down into variables that are accessible from the UDF Data access macros. 3. If the source term contains gradients of inaccessible variables, Set the variable up as UDS (through DEFINE_ADJUST) and access its gradient from UDSI_G.
__________________
Always Thedal |
|
July 23, 2023, 03:35 |
|
#5 | |
New Member
niming
Join Date: Jul 2023
Posts: 5
Rep Power: 3 |
Quote:
|
||
Tags |
fluent, mhd, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with MHD module and writing the UDF | aminrahmat | Fluent UDF and Scheme Programming | 5 | March 2, 2020 08:33 |
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM | Rizwan | Fluent UDF and Scheme Programming | 40 | March 18, 2018 07:05 |
udf loading problem | santu | Fluent UDF and Scheme Programming | 1 | May 22, 2015 16:47 |
Vaporization pressure UDF property problem? | lehoanganh07 | Fluent UDF and Scheme Programming | 1 | September 13, 2014 11:59 |
Problem with my udf | july | Fluent UDF and Scheme Programming | 3 | June 20, 2010 07:56 |