Parameter model in Fluent and Workbench

  • 271 Views
  • Last Post 17 June 2019
desouzadacosta posted this 07 June 2019

 Hi All,

I am trying to adapt  a fluent model parameter example from fluent and workbench 14.5. It is not working

for workbench 18.0 and 19.0.

Hopefully some ANSYS expert staff can solve my issue.

Let me describe:

1)The task is to set the parametric study involving different set of pre-defined fluid
materials. It uses a customized input parameter in Fluent.

2)It uses a prepared Fluent case. The case was set
with seven different materials representing air (air1,air2, … , air7) and every air
material is utilising a different density model available in the Fluent solver.

3) The simulation is being performed for a
number of different cases in Workbench(every case will utilise different density formulation)

I will describe my steps next and attach the pictures, .cas and .scm files :

i) Started a new workbench session
• Saved the project as: ‘CIP-Material’
• Located the ‘user_files’ folder
associated with this project and
copy the .cas and the .scm file

II) Dragged a Fluent component system
onto the project schematics
• Right-clicked on ‘Setup’, and selected
‘Register Startup Scheme File’, and
Browsed
• Browsed to and select the file
“CUI-Material.scm” located in
project’s ‘user_file’ folder

iii) Right-clicked on ‘Setup’, and selected
‘Import Fluent Case’, and Browsed
• Browsed to and select the file
.cas file located in
project’s ‘user_file’ folder
• In the Fluent Launcher panel selected
‘Double Precision’ option and pressed
‘OK

iV) In Fluent Text User Interface (TUI) typed the following
command: (material 1)
Verification of startup scheme was ok

v) Defined input and output parameter as in the following images

vi) Close Fluent
• Save the workbench
session
• Right-click on ‘Solution’,
and select ‘Update’

Attached Files

Order By: Standard | Newest | Votes
desouzadacosta posted this 07 June 2019

desouzadacosta posted this 09 June 2019

I also uploaded the recorded steps in mp4

rwoolhou posted this 10 June 2019

You've only got one design point in the list, and the P1 is greyed out. I'm not sure you can change a material property as a parameter: you may need to use a different approach. Happy to be corrected if you can show the reference! 

desouzadacosta posted this 10 June 2019

Hi

Thanks for the output. The reference is for version 14.5 (please see the first image, most of the images are also from the reference). It used a “create-custom-input-parameter” at the TUI (not available in the new versions, so I adapted that step .It is working for just one design point each time(with fluent window opened)  but not for a whole table of design points(fluent window closed). Clearly, the problem is in the comunication between fluent and workbench, but i am missing something. Very happy, if an expert help to find the solution.

rwoolhou posted this 10 June 2019

Check the Fluent User's Guide under Boundary Conditions: it's there but you may need to alter the commands. 

desouzadacosta posted this 10 June 2019

Do you mean 7.1.8.2.1. Defining Scheme Procedures With Input Parameters ?

I am afraid the scheme is  loading properly. The issue resides somewhere. I am still trying.

rwoolhou posted this 11 June 2019

Yes,   7.1.8. Defining and Viewing Parameters.  Check the labels and avoid using "-" or spaces in the names & path. Scheme can be a bit awkward like that. 

desouzadacosta posted this 12 June 2019

Hi All

Working fine in workbench 14.5. Unfortunatelly Frozen in 19.0.

abenhadj posted this 13 June 2019

What about using parameters for the material properties? Just an idea...

Anyway can you disable solution monitoring and try again. Check the trn files to have better idea about what is happening. Also test with an actual release.

Best regards,

Amine

abenhadj posted this 13 June 2019

I made an example and it is working with R2. Here for my tests I am just doing 2 iterations and 3 DP's.

 

Best regards,

Amine

desouzadacosta posted this 13 June 2019

Hi

can you share the wbpz file?

abenhadj posted this 13 June 2019

I uses R2. And i am Not allowed to share here. What is your University mail address.?

Best regards,

Amine

abenhadj posted this 14 June 2019

Actually I tested your case and just gave w iterations. Can you check on your side first. Can you then switch off monitoring?

Best regards,

Amine

desouzadacosta posted this 14 June 2019

Hi Amine and others

Looking forward any helpful clues

thxs a lot

abenhadj posted this 14 June 2019

Again I tested almost same case you attached in r2 with two iterations and it worked . Proceed with the suggestions I passed and let us know

Best regards,

Amine

desouzadacosta posted this 14 June 2019

Can you share at least a picture of your files window inside workbench?

desouzadacosta posted this 15 June 2019

Please share some picture of your screen showing what you did diferentlly. I am completely lost -(

abenhadj posted this 17 June 2019

I am using same macro and just iterated two iterations. Again cgeck wuth R2, disable solution monitoring and if it is not working let us know.

Best regards,

Amine

Close