CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Define udf for mass and energy source in cfx

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Opaque

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2018, 07:31
Default Define udf for mass and energy source in cfx
  #1
Member
 
naman doshi
Join Date: Oct 2017
Posts: 35
Rep Power: 8
namandoshi is on a distinguished road
Q1.can we define source term as user define function in cfx?if yes how?

Q2.i want to define udf for mass and energy source such that, mass source depend on mass of water vapour incoming the domain at point, is it possible to make such udf?

Q3. my energy source is dependent on the mass source.
namandoshi is offline   Reply With Quote

Old   April 20, 2018, 11:26
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
Opaque will become famous soon enough
A1: Yes.

A2: Yes

A3: Yes

How? Depends on the complexity required. You may even be able to do it using CEL (CFX Expression Language) and not even write a single line of Fortran code.

You may need to review a few tutorials, and read the documentation for CEL expressions support. The UDF (User-defined Fortran) works via the expressions setup as well; therefore, time invested in CEL is worth it.
namandoshi likes this.
Opaque 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
UDF carbon conversion papteo Fluent UDF and Scheme Programming 1 August 18, 2011 07:32
UDF for energy source João Fernandes FLUENT 4 October 17, 2008 04:53
UDF Scalar Code: HT 1 Greg Perkins FLUENT 8 October 20, 2000 12:40
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 13, 2000 23:03
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 03:43


All times are GMT -4. The time now is 18:58.