|
[Sponsors] |
October 8, 2006, 17:51 |
User defined function for density gradient
|
#1 |
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
|
|
October 9, 2006, 08:11 |
Re: User defined function for density gradient
|
#2 |
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. |
|
October 10, 2006, 10:49 |
Re: User defined function for density gradient
|
#3 |
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
|
|
October 10, 2006, 21:47 |
Re: User defined function for density gradient
|
#4 |
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. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 05:38 |
Set_material_property: null user defined function | Albert Franco | FLUENT | 1 | April 4, 2016 08:12 |
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 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 14:00 |