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

Fluent UDF in CFX

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By CycLone

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 21, 2008, 09: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, 17: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, 18: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, 05: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, 10: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, 11: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, 17:21
Default Re: Fluent UDF in CFX *NM*
  #7
CFX-user
Guest
 
Posts: n/a
  Reply With Quote

Old   July 24, 2023, 13:13
Default Boussinesq eddy viscosity assumption
  #8
New Member
 
prashant godse
Join Date: Jul 2023
Posts: 10
Rep Power: 2
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, 18:38
Default
  #9
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,697
Rep Power: 143
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, 09:20
Default
  #10
Senior Member
 
Join Date: Jun 2009
Posts: 1,803
Rep Power: 32
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 02:54
Import CFX def into Fluent eric_wang FLUENT 0 April 18, 2011 13:14
fluent UDF external library lapack problem Rick FLUENT 0 May 7, 2008 10:16
Fluent Vs CFX, density and pressure Omer CFX 9 June 28, 2007 04:13
Jobs in cfd - fluent or cfx? jobman Main CFD Forum 6 July 5, 2006 15:02


All times are GMT -4. The time now is 13:52.