CFD Online Logo CFD Online URL
Home > Forums > CFX

User defined function for density gradient

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

LinkBack Thread Tools Display Modes
Old   October 8, 2006, 17:51
Default User defined function for density gradient
ben akih
Posts: n/a
hi folks, i want to create a user defined function to give density gradients so that i can compare simulation results with schlieren images. i know this is possible using a fortran udf but will be grateful if someone with experience out there could give me useful tips on how to do this. thanks in advance ben
  Reply With Quote

Old   October 9, 2006, 08:11
Default Re: User defined function for density gradient
Posts: n/a
The solver does not provide density gradients AFAIK i.e. density.Gradient is not supported by USER_GERVAR. You also can't create arbitrary variable gradients within CFX Post AFAIK.

So you will probably have to export the density data from Post to a flat file (x,y,z,density) and post-process it yourself e.g. with matlab.
  Reply With Quote

Old   October 10, 2006, 10:49
Default Re: User defined function for density gradient
Posts: n/a
When I created a particle fortran routine it was not possible to pass temperature.gradient from cfx-pre to the routine but I got the hint from ANSYS-Support to specify temperature.gradient in the ccl. Now it is working when you ignore the error messages from cfx-pre. Maybe you can specify the density.gradient in the ccl to pass it to your routine? Let us know if this works

  Reply With Quote

Old   October 10, 2006, 21:47
Default Re: User defined function for density gradient
Posts: n/a
No need for user fortran.

For compressible flows the solver writes density gradients to the results file.

With some creativity you can recreate "Schlieren" like plots in CFX Post. Start with the inverse logarithmic grayscale colormap. You may need to post process it.
  Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Set_material_property: null user defined function Albert Franco FLUENT 1 April 4, 2016 08:12
User Defined function for scalar gradient caculation with Star ccm+ V4 coolio CD-adapco 3 December 21, 2011 18:13
solving passive scalar by user function in AVLFIRE huyp Main CFD Forum 0 September 4, 2008 10:21
User defined function hari FLUENT 0 October 9, 2007 03:24
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00

All times are GMT -4. The time now is 07:34.