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

User defined function for density gradient

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 8, 2006, 18:51
Default User defined function for density gradient
  #1
ben akih
Guest
 
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, 09:11
Default Re: User defined function for density gradient
  #2
Joe
Guest
 
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, 11:49
Default Re: User defined function for density gradient
  #3
Felix
Guest
 
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, 22:47
Default Re: User defined function for density gradient
  #4
HeKleR
Guest
 
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

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
User Defined function for scalar gradient caculation with Star ccm+ V4 coolio STAR-CCM+ 4 August 11, 2023 06:38
Set_material_property: null user defined function Albert Franco FLUENT 1 April 4, 2016 09:12
solving passive scalar by user function in AVLFIRE huyp Main CFD Forum 0 September 4, 2008 11:21
User defined function hari FLUENT 0 October 9, 2007 04:24
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00


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