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

Fluent UDF in CFX

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By CycLone

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 21, 2008, 10:24
Default Fluent UDF in CFX
  #1
CFX User
Guest
 
Posts: n/a
Hello All

I have a UDF written in C for use in Fluent Now I began to work on CFX and I am new to using CFX and writing subroutines in it.

Is there a way where CFX can compile codes written for Fluent or do I have to write a Fortran code all over again for CFX

Thank you

Sandilya
  Reply With Quote

Old   October 21, 2008, 18:18
Default Re: Fluent UDF in CFX
  #2
CycLone
Guest
 
Posts: n/a
No, you'll need to reproduce it for CFX.

What does the UDF do? Most of what you would do with a UDF in Fluent you can do directly in CFX with CEL.

-CycLone
  Reply With Quote

Old   October 21, 2008, 19:23
Default Re: Fluent UDF in CFX
  #3
CFX User
Guest
 
Posts: n/a
The UDF adds two new scalar transport equations, one for solving for electric potential in the domain and the other for calculating the ion transport in the domain. These equations are as follows

1) Poisson Equation with space charge source term

Del^2(phi) = -ion density/epsilon

2) Ion Transport equation

Del.( A*rho + B*rho + C*rho ) = Diff Coeff * [Del^2 (rho)]

rho is ion density

A , B, C are functions of velocity, phi etc i.e. the two scalar transport equations are coupled and inturn they are both coupled to flow equations

What is CEL in CFX and how to include above scalar transport equations in CFX

Thank you

  Reply With Quote

Old   October 22, 2008, 06:42
Default Re: Fluent UDF in CFX
  #4
underGroundMan
Guest
 
Posts: n/a
Its easy to do that in CFX using CEL. Have a read about CEL in documentation.

Regards

  Reply With Quote

Old   October 22, 2008, 11:15
Default Re: Fluent UDF in CFX
  #5
CycLone
Guest
 
Posts: n/a
Firstly, CFX does not require a user to code additional variable transport equations. In CFX-Pre, just create a new "Additional Variable" for each scalar. You can create these as Volumetric (per unit volume) or Specific (per unit mass) variables and specify their units accordingly. Once you have create the AV's, return to the Fluids Tab on the domain object to define how these are solved. Options include:

Transport Equation (Advection + Diffusion) Diffusive Transport Equation (Diffusion including transient term) Poisson Equation (Diffusion without transient term) Algebraic Equation (Local algebraic equation, no transport)

Have a look at Additional Variables in the documentation to see the form of the equations.

The CFX Expression Language (CEL) is a unit aware algebraic expression language that is used to interpret all floating point values entered by the user (you are already using it when you enter boundary conditions, fluid properties etc.). You'll note a blue icon with the square root of alpha beside the dialog box when you enter a value. If you click on this, you can enter an algebraic expression instead. CEL expressions can vary in space (X,Y,Z), time (t), with temperature (T, or Temperature), or any other variable available from the solver or in your results (in Post). You can even refer to values at other boundary regions, points in the domain, volumetric averages and so-on. There are some limitations which are imposed to prevent unphysical conditions, for instance you cannot make density a function of space or time. See the help for more details. If CEL does not include a function you need, you can write one in FORTRAN and use it in your expressions.

That said, CFX v11 already includes electromagnetics as a beta feature. You can enable beta features from Edit>Options. Add electromagnetic properties to your materials and return to your domain to enable electromagnetic effects. This will be a released feature in version 12, but you can contact technical support for more information in the interim.

Basically, the vast majority of things you would do with UDF in FLUENT you can do in CFX directly. CFX users rarely need to write User Fortran routines.

-CycLone

xerxessighs likes this.
  Reply With Quote

Old   October 22, 2008, 12:55
Default Re: Fluent UDF in CFX
  #6
CFX-User
Guest
 
Posts: n/a
Thank you very much for the detailed response

CFX-User
  Reply With Quote

Old   October 22, 2008, 18:21
Default Re: Fluent UDF in CFX *NM*
  #7
CFX-user
Guest
 
Posts: n/a
  Reply With Quote

Old   July 24, 2023, 14:13
Default Boussinesq eddy viscosity assumption
  #8
New Member
 
prashant godse
Join Date: Jul 2023
Posts: 10
Rep Power: 3
prashant9397 is on a distinguished road
can we edit Boussinesq eddy viscosity assumption in ansys cfx
prashant9397 is offline   Reply With Quote

Old   July 24, 2023, 19:38
Default
  #9
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
CFX has a range of turbulence models available, and it is possible to define your own turbulence model (but not simple). However you cannot simply change the nature of the built in turbulence models.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   July 25, 2023, 10:20
Default
  #10
Senior Member
 
Join Date: Jun 2009
Posts: 1,873
Rep Power: 33
Opaque will become famous soon enough
Quote:
Originally Posted by prashant9397 View Post
can we edit Boussinesq eddy viscosity assumption in ansys cfx
What is the goal of modifying the Eddy Viscosity? How is consistency between all the pieces of an existing turbulence model guaranteed?
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
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
Mesh and Solve Times for CFX, Fluent, CD-adapco Jade M Main CFD Forum 4 August 28, 2012 03:54
Import CFX def into Fluent eric_wang FLUENT 0 April 18, 2011 14:14
fluent UDF external library lapack problem Rick FLUENT 0 May 7, 2008 11:16
Fluent Vs CFX, density and pressure Omer CFX 9 June 28, 2007 05:13
Jobs in cfd - fluent or cfx? jobman Main CFD Forum 6 July 5, 2006 16:02


All times are GMT -4. The time now is 19:42.