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

Problem with mhd udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 10, 2023, 23:15
Default Problem with mhd udf
  #1
New Member
 
niming
Join Date: Jul 2023
Posts: 5
Rep Power: 2
sixgod is on a distinguished road
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!!!
sixgod is offline   Reply With Quote

Old   July 11, 2023, 04:52
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
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
AlexanderZ is offline   Reply With Quote

Old   July 11, 2023, 04:58
Default
  #3
New Member
 
niming
Join Date: Jul 2023
Posts: 5
Rep Power: 2
sixgod is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
search for published papers regarding this topic.

you may need to control momentum and sources through UDF
read ansys fluent customization manual
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
sixgod is offline   Reply With Quote

Old   July 22, 2023, 13:52
Default Source UDF?
  #4
Member
 
thedal's Avatar
 
Thamilmani M
Join Date: Sep 2017
Location: IIT Bombay, Mumbai
Posts: 52
Rep Power: 8
thedal is on a distinguished road
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
thedal is offline   Reply With Quote

Old   July 23, 2023, 02:35
Default
  #5
New Member
 
niming
Join Date: Jul 2023
Posts: 5
Rep Power: 2
sixgod is on a distinguished road
Quote:
Originally Posted by thedal View Post
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.
thank you very much !!!
sixgod is offline   Reply With Quote

Reply

Tags
fluent, mhd, udf


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
Problem with MHD module and writing the UDF aminrahmat Fluent UDF and Scheme Programming 5 March 2, 2020 07:33
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 06:05
udf loading problem santu Fluent UDF and Scheme Programming 1 May 22, 2015 15:47
Vaporization pressure UDF property problem? lehoanganh07 Fluent UDF and Scheme Programming 1 September 13, 2014 10:59
Problem with my udf july Fluent UDF and Scheme Programming 3 June 20, 2010 06:56


All times are GMT -4. The time now is 06:49.