CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Plotting user function CFD-post (https://www.cfd-online.com/Forums/cfx/122316-plotting-user-function-cfd-post.html)

ZingyDNA August 16, 2013 15:50

Plotting user function CFD-post
 
Hi guys,

I defined a 3D user function "HeatDeposition(x,y,z)" in CFX-pre and wanted to plot it in 3D in CFD-post. So I made an expression to be equal to the function in CFX-pre, but in CFD-post I got an error "The following unrecognised name was referenced: HeatDeposition"

Why is this happening?

Thanks.

JuPa August 16, 2013 17:04

Are you sure that you don't need to create a variable first in CFX Pre, and then go into default domain and select your variable in the "additional variables" section. It will then get monitored during the solver process and subsequently passed onto CFD Post.

Further if you just want a pretty picture of what your variable "HeatDeposition(x,y,z)" looks like then in CFX Pre when you define your variable there should be a plot tab. If you provide values for x,y,z it should give you a plot.

However I've never seen a variable like "HeatDeposition(x,y,z)" without a location identifier. You might need to say HeatDeposition(x,y,z)@fluid_domain or something similar.

ZingyDNA August 16, 2013 18:42

Quote:

Originally Posted by RicochetJ (Post 446226)
Are you sure that you don't need to create a variable first in CFX Pre, and then go into default domain and select your variable in the "additional variables" section. It will then get monitored during the solver process and subsequently passed onto CFD Post.

That did the trick! I'm not familiar with handling all the variables, expressions, and functions that ANSYS defines. They kinda make it a little complicated. Thanks for the help!

Quote:

Originally Posted by RicochetJ (Post 446226)
Further if you just want a pretty picture of what your variable "HeatDeposition(x,y,z)" looks like then in CFX Pre when you define your variable there should be a plot tab. If you provide values for x,y,z it should give you a plot.

In pre they only allow you to plot function value against x, y, or z. I needed a 3D plot so I figured I can only do it in post.

Quote:

Originally Posted by RicochetJ (Post 446226)
However I've never seen a variable like "HeatDeposition(x,y,z)" without a location identifier. You might need to say HeatDeposition(x,y,z)@fluid_domain or something similar.

I have only the default domain so far so this is not needed yet...


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