|
[Sponsors] |
February 10, 2020, 10:36 |
Assigning UDM vis Profile File?
|
#1 |
Member
Raphael
Join Date: Nov 2012
Posts: 68
Rep Power: 13 |
Is it possible to assign values to a user-defined-memory using a defined "profile" in Fluent? Or is it only possible via UDF?
|
|
February 10, 2020, 10:39 |
UDMs accessible only via UDF
|
#2 |
Senior Member
|
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. |
|
February 10, 2020, 10:41 |
|
#3 |
Member
Raphael
Join Date: Nov 2012
Posts: 68
Rep Power: 13 |
||
February 10, 2020, 10:44 |
Objective
|
#4 |
Senior Member
|
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. |
|
February 10, 2020, 10:52 |
|
#5 |
Member
Raphael
Join Date: Nov 2012
Posts: 68
Rep Power: 13 |
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.
|
|
February 10, 2020, 11:00 |
Use xy-plot
|
#6 |
Senior Member
|
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.
__________________
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. |
|
February 10, 2020, 11:08 |
|
#7 | |
Member
Raphael
Join Date: Nov 2012
Posts: 68
Rep Power: 13 |
Quote:
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! |
||
February 10, 2020, 12:05 |
|
#8 | |
Member
Raphael
Join Date: Nov 2012
Posts: 68
Rep Power: 13 |
Quote:
any ideas what i might be doing wrong? |
||
February 10, 2020, 12:40 |
Fixed Values
|
#9 |
Senior Member
|
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. |
|
February 10, 2020, 22:48 |
|
#10 | |
Member
Raphael
Join Date: Nov 2012
Posts: 68
Rep Power: 13 |
Quote:
Thanks again! |
||
February 11, 2020, 03:42 |
Good
|
#11 |
Senior Member
|
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. |
|
|
|
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 |