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

Assigning UDM vis Profile File?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By vinerm

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 10, 2020, 10:36
Default Assigning UDM vis Profile File?
  #1
Member
 
Raphael
Join Date: Nov 2012
Posts: 68
Rep Power: 13
arkie87 is on a distinguished road
Is it possible to assign values to a user-defined-memory using a defined "profile" in Fluent? Or is it only possible via UDF?
arkie87 is offline   Reply With Quote

Old   February 10, 2020, 10:39
Default UDMs accessible only via UDF
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
UDMs are accessible only via UDF; both C based and Scheme based.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   February 10, 2020, 10:41
Default
  #3
Member
 
Raphael
Join Date: Nov 2012
Posts: 68
Rep Power: 13
arkie87 is on a distinguished road
Quote:
Originally Posted by vinerm View Post
UDMs are accessible only via UDF; both C based and Scheme based.
Thank you (for the bad news :P)
arkie87 is offline   Reply With Quote

Old   February 10, 2020, 10:44
Default Objective
  #4
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
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.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   February 10, 2020, 10:52
Default
  #5
Member
 
Raphael
Join Date: Nov 2012
Posts: 68
Rep Power: 13
arkie87 is on a distinguished road
Quote:
Originally Posted by vinerm View Post
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.
arkie87 is offline   Reply With Quote

Old   February 10, 2020, 11:00
Default Use xy-plot
  #6
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
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 likes this.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   February 10, 2020, 11:08
Default
  #7
Member
 
Raphael
Join Date: Nov 2012
Posts: 68
Rep Power: 13
arkie87 is on a distinguished road
Quote:
Originally Posted by vinerm View Post
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 is offline   Reply With Quote

Old   February 10, 2020, 12:05
Default
  #8
Member
 
Raphael
Join Date: Nov 2012
Posts: 68
Rep Power: 13
arkie87 is on a distinguished road
Quote:
Originally Posted by vinerm View Post
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?
arkie87 is offline   Reply With Quote

Old   February 10, 2020, 12:40
Default Fixed Values
  #9
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
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.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   February 10, 2020, 22:48
Default
  #10
Member
 
Raphael
Join Date: Nov 2012
Posts: 68
Rep Power: 13
arkie87 is on a distinguished road
Quote:
Originally Posted by vinerm View Post
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!
arkie87 is offline   Reply With Quote

Old   February 11, 2020, 03:42
Default Good
  #11
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
Nice to know that the hack worked.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Reply


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
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 06:47
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 09:07
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 11:44
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08


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