|
[Sponsors] |
Sutile and Tricky : Drive Fluent UDF parameters directly from workbench |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 16, 2020, 13:00 |
Sutile and Tricky : Drive Fluent UDF parameters directly from workbench
|
#1 |
Member
Alexandre M S Costa
Join Date: Apr 2009
Posts: 31
Rep Power: 17 |
Hi All,
This issue is very tricky and I am spending too many hours trying to find a workaround. Hopefully it will drag the attention of a scheme-udf master for a solution. Lets start: The Australian Leap site provides the steps for a conventional property derived from workbench:
RP_Get_Real("leap") In short as long as you can define the property with DEFINE_PROPERTY udf, the problem is solved. My problem is that I am using the density set by using the boussinesq model, and I want to parametrize in workbench that density after setting the boussinesq model. Any thoughts, even not using worbench at all but parametrizing using fluent are very welcome. Best for All Last edited by amscosta; July 16, 2020 at 13:07. Reason: some text no showing |
|
July 17, 2020, 01:45 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
you can use journal file to make all settings for your case, and define density as well
combination of scheme and TUI commands will give you control on the whole Fluent by the way, why did you print command above with white color? Code:
RP_Get_Real("leap")
__________________
best regards ****************************** press LIKE if this message was helpful |
|
July 17, 2020, 10:31 |
|
#3 |
Member
Alexandre M S Costa
Join Date: Apr 2009
Posts: 31
Rep Power: 17 |
Hi Alexander,
Thanks for the reply. My question is tricky because I can drive properties from the workbench as long as I can define it using the DEFINE_PROPERTY udf. I need just to follow the guidelines from the leap site (please see the attached image). My problem is that I want to define the reference density (numerical value in the box just below when I select boussinesq for Density). So the model for the density is boussinesq and I can not use the DEFINE_PROPERTY udf for define density. My current aproach(that is not working) : I just followed the guidelines in the section 7.1.8.2.3 in the Fluent Users Guide issuing Fluent TUI commands as below : (after adding nitrogen fluid in materials): /define/parameters/input-parameters/advance> use-in Select type:> scheme-proc Name of parameter ["parameter-3"] rho-p rho-p value [0] 0.06 Enter the name/body of apply-function [] (lambda (value) (ti-menu-load-string (format #f "/define/materials/change-create nitrogen nitrogen yes boussinesq ~g no no no no no no" value))) It is not working because, although I can see the rho-p parameter in the workbench design table, it is not being updated when I request to update all the design points with different values of rho-p (reference density for the boussinesq density model). Any output towards a solution is highly appreciated. |
|
July 20, 2020, 02:46 |
|
#4 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
try
Code:
(ti-menu-load-string (format #f "/define/materials/change-create nitrogen nitrogen yes boussinesq ~a no no no no no no" (rpgetvar 'rho-p))) Code:
Enter the name/body of apply-function [] (lambda (value) (ti-menu-load-string (format #f "/define/materials/change-create nitrogen nitrogen yes boussinesq ~g no no no no no no" value)))
__________________
best regards ****************************** press LIKE if this message was helpful |
|
July 21, 2020, 17:50 |
|
#5 |
Member
Alexandre M S Costa
Join Date: Apr 2009
Posts: 31
Rep Power: 17 |
Hi Alexander,
Thanks for the reply. As long as I define rho-p : (rp-var-define 'rho-p 0.06 'real #f) The (ti-menu-load-string ....) you suggested works. But I am still missing how to make the rho-p parameter appear in the workbench. Should I do that in the execute commands ? Any clue is very welcome. Best Alex |
|
Tags |
property parameterizing |
|
|