CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Assigning UDM vis Profile File? (https://www.cfd-online.com/Forums/fluent/224214-assigning-udm-vis-profile-file.html)

arkie87 February 10, 2020 10:36

Assigning UDM vis Profile File?
 
Is it possible to assign values to a user-defined-memory using a defined "profile" in Fluent? Or is it only possible via UDF?

vinerm February 10, 2020 10:39

UDMs accessible only via UDF
 
UDMs are accessible only via UDF; both C based and Scheme based.

arkie87 February 10, 2020 10:41

Quote:

Originally Posted by vinerm (Post 757532)
UDMs are accessible only via UDF; both C based and Scheme based.

Thank you (for the bad news :P)

vinerm February 10, 2020 10:44

Objective
 
May I know the objective of using UDM if UDF is not being used?

You can access the profiles defined in the Fluent within a UDF and assign the values to UDM.

arkie87 February 10, 2020 10:52

Quote:

Originally Posted by vinerm (Post 757537)
May I know the objective of using UDM if UDF is not being used?

You can access the profiles defined in the Fluent within a UDF and assign the values to UDM.

I want to define porosity and inverse permeability via profile file. I have the profile file and it hooks properly, but want to plot it to see if it looks as expected. Fluent does not let me contour plot porosity or inverse permeability, so i thought I could copy porosity to a UDM, since Fluent lets me contour plot UDMs.

vinerm February 10, 2020 11:00

Use xy-plot
 
You can certainly plot profiles, except those are not contour plots. To plot contours, you have to apply those to UDMs. But if its a profile then the values are already known and you can use some external tool to plot it, such as matlab, octave, gnuplot, tecplot, etc. Furthermore, Fluent will only plot the interpolated profile and not the actual profile when you assign those to UDMs and plot the contours. But it certainly is doable using UDF.

There is a small hack that you can do. Enable Fixed Values in Fluent's cell zone. Then, assign the profiles as any of the field variables. Initialize the simulation. If you assign profiles as velocity, then you can just plot the velocity, and voila.

arkie87 February 10, 2020 11:08

Quote:

Originally Posted by vinerm (Post 757548)
You can certainly plot profiles, except those are not contour plots. To plot contours, you have to apply those to UDMs. But if its a profile then the values are already known and you can use some external tool to plot it, such as matlab, octave, gnuplot, tecplot, etc. Furthermore, Fluent will only plot the interpolated profile and not the actual profile when you assign those to UDMs and plot the contours. But it certainly is doable using UDF.

There is a small hack that you can do. Enable Fixed Values in Fluent's cell zone. Then, assign the profiles as any of the field variables. Initialize the simulation. If you assign profiles as velocity, then you can just plot the velocity, and voila.

I have created profile file in matlab, so i am confident that it is correct, but i want to verify that fluent is reading it as expected.

I was trying to apply it to velocity, like you say, and plotting it, but i can only apply it as a boundary condition on the inlet. I was trying to initialize velocity field using it, but it wouldnt let me. Your suggestion to fix the field variables sounds like it will work though. Thanks!

arkie87 February 10, 2020 12:05

Quote:

Originally Posted by vinerm (Post 757548)
You can certainly plot profiles, except those are not contour plots. To plot contours, you have to apply those to UDMs. But if its a profile then the values are already known and you can use some external tool to plot it, such as matlab, octave, gnuplot, tecplot, etc. Furthermore, Fluent will only plot the interpolated profile and not the actual profile when you assign those to UDMs and plot the contours. But it certainly is doable using UDF.

There is a small hack that you can do. Enable Fixed Values in Fluent's cell zone. Then, assign the profiles as any of the field variables. Initialize the simulation. If you assign profiles as velocity, then you can just plot the velocity, and voila.

Unfortunately, fixing values doesnt appear to be working. Initializing overwrites the values, and running 1 iteration doesnt work either...

any ideas what i might be doing wrong?

vinerm February 10, 2020 12:40

Fixed Values
 
Initializing always sets the initial values, however, after running a couple of iterations, it should be able to show the fixed values. And you may have to deselect node values while plotting contours.

arkie87 February 10, 2020 22:48

Quote:

Originally Posted by vinerm (Post 757569)
Initializing always sets the initial values, however, after running a couple of iterations, it should be able to show the fixed values. And you may have to deselect node values while plotting contours.

Yes, this worked. I think during troubleshooting i turned off flow from the equations list. Flow has to be enabled for it to assign fixed values.

Thanks again!

vinerm February 11, 2020 03:42

Good
 
Nice to know that the hack worked.


All times are GMT -4. The time now is 14:18.