cfd-post: how to update multiple design points with custom ... · multiple design points with...

13
fev-14 1 CFD-Post: How to Update Multiple Design Points with Custom Results February/2013 How-to Procedure Joel Sanvezzo Junior Vinicius Strugata Ambrosio

Upload: leque

Post on 21-Apr-2018

230 views

Category:

Documents


3 download

TRANSCRIPT

fev-14 1

CFD-Post: How to Update Multiple Design Points with

Custom Results

February/2013

How-to Procedure

Joel Sanvezzo Junior Vinicius Strugata Ambrosio

fev-14 2

Contents

Introduction

Problem Definition

Solution

fev-14 3

• This document presents a method to generates multiple results, using CFD-Post and multiple design points

• All you will need is a Python script and a suitable Project Schematic containing

– Only ONE CFD-Post System (this must be the last system in the update order)

– A list of Design Points defined in the Table of Design Points

– A CCL (CFX Command Language) script, used to export the results for each design point

Introduction

fev-14 4

Introduction

A CFD Post to export

the Results (via CCL)

A table of Design Points. The CCL script

will be applied over each DP

fev-14 5

• The user wants to obtain a Post Processing result from a CFD Analysis

• But it’s required to get such result from multiple design points

• First approach in order to achieve this requirement:

• Turn on the “Exported” checkbox for all design points defined in the Table of Design Points

• Problem:

– The user have dozens of DPs in the table, requiring a lot of disk space to store all simulation data if this checkbox is marked on

– This is not desirable!

Problem Definition

fev-14 6

Problem Definition

• Second approach (this is the one described in this presentation):

• Use a Python script to traverse all DPs and get the results

• Advantages:

– The data for only one DP will remain in the disk

– The CCL script is able to generate the results in a specified folder, one folder for each DP

Table of Design Points

CFD-Post

fev-14 7

• For demonstration purposes*, the problem being solved is the classic “Static Mixer”

• In this case, let’s suppose that the user wants to investigate the effects of a modification in the length of the output pipe

• Of course, any other parameter could be elected

• The parameter must be published in the Parameters Set

Solution

*This solution is generic and works for any parametric problem

fev-14 8

• The Project Schematic:

• The Project Schematic should be similar to the one shown in the picture

• There must be only one CFD-Post system.

Solution

fev-14 9

• The Design Points table:

• You could have any number of DPs in the Table

• Similarly, you could have any number of parameters (either input or outputs)

• For sake of simplicity, in this demonstration there’s only 2 DPs defined

– For each DP, a CCL script will the executed by the CFD-Post

– This CCL script captures an image, and save such image in a pre-defined folder name scheme. For example:

• DP0 → {outputFolder}\Report-DP0

• DP1 → {outputFolder}\Report-DP1

• DP2 → {outputFolder}\Report-DP2

• …

Solution

fev-14 10

• The Python Script Execution:

• You must run the script using the command File→Scripting→Run Script File

• The Python script instructions are executed and the outputs are generated in the specified directory

Solution

fev-14 11

• The Python Script Details:

Solution

This is the CCL script

that will generate the

output results

Executes the CCL script

for each DP and save the

results in the output folder

fev-14 12

• The Script Outputs:

Solution

This is the generated

outputs

Notice that the

length of the

output pipe

has changed

fev-14 13

• For more help:

• https://esss.zendesk.com/home