visualdoc: a practical software integration and general ......s = 1 cp2, s = 2 cp4, te s = 4 cp3, s...

47
VisualDOC: A Practical Software Integration and General Purpose Design Optimization Solution Suite Optimization Solution Suite Ashwin P Gurnani, Juan Pablo Leiva, Garret N. Vanderplaats Vanderplaats Research & Development, Inc. Colorado Springs, CO, USA

Upload: others

Post on 16-Sep-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

VisualDOC: A Practical Software

Integration and General Purpose Design

Optimization Solution SuiteOptimization Solution Suite

Ashwin P Gurnani, Juan Pablo Leiva, Garret N. Vanderplaats

Vanderplaats Research & Development, Inc.

Colorado Springs, CO, USA

Page 2: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Outline of Presentation

• Introduction

• VisualDoc Framework

• VisualDoc Grapical Interfaces and Key Windows

• Examples

• Summary

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 2

• Summary

• Conclusions

Page 3: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Introduction

• Design of large scale products and processes require interaction

from several different disciplines.

• These disciplines utilize computationally expensive analyses codes,

for example, FEA, CFD etc.

• With rapidly increasing costs, never before has there been a need

for producing optimally designed products.

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 3

for producing optimally designed products.

• This paper presents a product design solution suite that provides

engineers the capability to integrate multiple analyses software

AND optimize designs over these multiple analyses codes.

Page 4: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

VisualDOC – Framework

GUIVisualScript

Integration Utility

• Database is the central component of the software.

• Saved as platform independent .vdb file

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 4

User Defined

Analysis Program3rd Party

Analysis

Database

Response Surface

Optimization

Gradient-based

Optimization

Design of

Experiments

Evolutionary

Optimization…

Page 5: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

VisualDOC Introduction

• VisualDOC GUI

Inputs

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 5

Responses

Page 6: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Optimization Modules

Select Optimization Module

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 6

Page 7: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Gradient Based Optimization

Constrained

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 7

Unconstrained

Page 8: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Design of Experiments

• Create an experimental

design

Select Sampling Method

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 8

Select DOE Action

Page 9: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Design of Experiments

• Approximate responses

Select Approximation Model

Select Sampling Method

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 9

Select DOE Action

Page 10: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Design of Experiments

• RS

coefficients

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 10

• Actual vs.

Predicted

Page 11: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Response Surface Optimization

Select the Approximation Model Order

Co

nvers

ion

of

Ch

em

ical P

rocess (%

)

Co

nvers

ion

of

Ch

em

ical P

rocess (%

)

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 11

Select the Starting Strategy

Co

nvers

ion

of

Ch

em

ical P

rocess (%

)

Co

nvers

ion

of

Ch

em

ical P

rocess (%

)

Page 12: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Non-Gradient Based Optimization

Select Optimization Algorithm

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 12

Select Starting Strategy

Define Algorithm related parameters

Page 13: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Probabilistic Analysis and Optimization

Set up random Inputs and Responses

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 13

Select Probabilistic Analysis Method

Page 14: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Probabilistic Analysis and Optimization

Pro

ba

bili

ty Constraint

Reliability OptimizationControl the probability of failure

Robust OptimizationControl the variability of a response

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 14

Pro

ba

bili

ty

Probability of failure

y0

ConstraintBound

x1x2

∆ y1

∆ y2

Page 15: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Direct Interface --Excel

• Prepare Excel

spreadsheet

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 15

• Define inputs and

responses in

VisualDOC

Page 16: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Direct Interface -- Excel

• Create VisualDOC-

Excel interface

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 16

• Use the Interface as the analysis program

Page 17: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Direct Interface -- Matlab

• Prepare Matlab M-file

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 17

• Define the Inputs and Responses in VisualDOC

Page 18: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Direct Interface -- Matlab

• Create a task

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 18

• Specify the Matlab M-file as the analysis program

Page 19: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Coupling Third Party Software Through VisualScript

Create analysis workflow in VisualScript

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 19

Extract the Inputs from the input fileCall third party analysis programExtract the Outputs from the output file

Page 20: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

VisualDOC API

• VisualDOC C/C++ Application Programming Interface (API) functions allow users to embed all the capabilities of VisualDOC into users’ own program.

• These capabilities include

– Direct Gradient-based Optimization (DGO)

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 20

– Direct Gradient-based Optimization (DGO)

– Response Surface Approximate Optimization (RSA)

– Design Of Experiments (DOE)

– Non-gradient-based Optimization (NGO)

– Single Analysis

– Probabilistic Optimization.

Page 21: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Parallel Analysis

• Put multiple analysis elements in the Parallel Container

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 21

• Add Parallel Container to the workflow

Page 22: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Remote Run

• Analysis – Remote computers

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 22

• VisualDOC –

local computer

Define remote connection properties

Page 23: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Create and Run Task

• Create an optimization task

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 23

• Run the optimization task and graphically visualizing

Page 24: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Post Process the Optimization Results

Plot Objective

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 24

Plot Design Variables

Plot Responses and show the constraints

Page 25: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

“What-If?” Study Tool

Original optimization result

New optimization result

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 25

Relax the displacement constraint

Run Approximate Optimization with new constraint

Page 26: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Examples

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 26

Page 27: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Problem Description

• LS-Dyna Optimization

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 27

Page 28: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Optimization Problem

• Objective– Maximize Internal Energy

• Design Variables– Thickness of the shell elements

– Shape changes of the tube

– Linking to ensure symmetry

Original Shape

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 28

S1

Perturbation - S13Perturbations except S13

S2

S3 ~ S6

S7 ~ S10

S11

S12

S13

Page 29: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

VisualScript

• Used to define the interaction between VisualDOC and LS-Dyna

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 29

Page 30: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

VisualScript

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 30

Design VariablesResponses

Page 31: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

VisualDOC

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 31

Page 32: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Results

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 32

Initial Design Optimal Design

Internal Energy = 10407.20 Internal Energy = 31795.60

Page 33: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Results

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 33Initial Design Optimal Design

Page 34: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Case Study – Turbomachinery System Design

AxSTREAMAxSTREAM

Preliminary Design

Meshing

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 34

GENESIS / VisualDOCGENESIS / VisualDOC

Structural and CFD

Analysis and Optimization

Blades, Disks, Complete SystemsBlades, Disks, Complete Systems

Page 35: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Case Study – Turbomachinery System Design

Axis of Rotation

(-z)

TIP/SHROUDSpan Layer 100%

(r = 5)

HUBSpan Layer 0%

(r = 1)

• The blade geometry is divided into

5 constant radius layers evenly

distributed along the span

(0.00% - Hub and 100 % - Shroud)

• At each span layer, the mean

(camber) line is generated using a

4-point Bezier control polygon+ Z (M’)

b

CP1, LEs = 1

CP2, s = 2

CP4, TEs = 4

CP3, s = 3

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 35

• Each Bezier Control Point (CP) is

specified as a (M’r|s, b) coordinate

pair:

(1 ≤ r ≤ 5) – Hub to Shroud Index

(1 ≤ s ≤ 4) – LE to TE Index

ZZZRRM ∂=∂⋅∂+∂⋅∂=∂

∂=

'tan

Ma

θβ

R

MM

∂=∂ ' ∫ ⋅∂=

s

dsMM0

''

S - Fractional distance along the curve 10 ≤≤ S

100*'

''

|

|

|

=

TEr

sr

sr

M

MM

• LE Edge Sweep (qr) indicated at

each Span Layer�A radial interpolation between theairfoils at the each layer to generatethe 3D blade Shape

Page 36: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Case Study – Turbomachinery System Design

Objective:

Maximize efficiency

NEWNEWDESIGNDESIGN

VARIABLESVARIABLES

OPTIMIZEROPTIMIZER(VISUALDOC)(VISUALDOC)

GENERATE BLADE GEOMETRY

[CFX-BLADEGEN]

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 36

RESULTSRESULTS

BLADE PASSAGE CFD ANALYSES

[CFX-BLADEGEN(PLUS)]

Page 37: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Case Study – Turbomachinery System Design

Blade Results:

• An average of 9% increase in total efficiency was obtained

• Robustness of the approach evidenced in its ability to yield

significant efficiency gains in spite of the noisy objective function.

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 37

Page 38: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Case Study – Engine Head Gasket

2-D Z-Flow engine cooling system (Block, Head, and Gasket)

Objective: Maximize the fluid velocity averaged at 10 locations

Design variables: Holes’ diameter and location (offset from center)

(12 design variables total)

Constraints: Minimum velocity at 10 locations

Analysis: FLUENT CFD program

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 38

Velocity_Head_Point_1

Velocity_Block_Point_1

VBP_2 VBP_3 VBP_4VBP_5

VHP_2

VHP_3 VHP_4

VHP_5

Inlet Velocity

(8.577 m/s)

BLOCK

HEAD

Hole 1 Hole 2 Hole 4 Hole 5 Hole 6Hole 3

850 mm

Gasket

Page 39: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Case Study – Engine Head Gasket

• GAMBIT (mesher) journal file

parameterization

• Block / Head mesh is unchanged

during optimization

Blockhead.msh

HoleZone.msh

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 39

• Hole regions mesh is changed by

VisualDOC using GAMBIT

journal fileBlockhead.msh

GasketGasket

Page 40: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Case Study – Engine Head Gasket

Initial design

Velocity constraint not satisfied at 2 locations initially

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 40

Optimal design

-- 2424 FLUENT calls

- Constraints satisfied after 15 15 FLUENT calls

- Average velocity increase: 2020%%

Page 41: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Case Study – Integration with MoldFlow

• VisualDOC has been integrated with MoldFlow’s MoldFlow Plastics Insight

(MPI) software to determine Optimal gate location.

• Optimal gate location will be the geometry that minimizes the maximum

pressure at the end of the filling.

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 41

Page 42: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Case Study – Integration with MoldFlow

• The Flat Plate Below is Comprised of Four Different Thickness

Regions

• VisualDOC Will Locate the Three Gates so that the Maximum

Pressure at the End of Filling will be Minimized

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 42

Initial Gate Locations

Page 43: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Case Study – Integration with MoldFlow

Optimization Process Sequence

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 43

Page 44: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Case Study – Integration with MoldFlow

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 44

Optimal Gate Locations

Page 45: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Case Study – Integration with MoldFlow

• During 15 iterations, injector X and Y coordinates for each gate migrated to

plate locations that minimized the maximum pressure at the end of fill time.

• Total 22 analyses were performed for this optimization.

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 45

• VisualDOC optimization parameters may be set to reduce total number of

analyses to achieve “better” rather than “best” design.

• A better guess for the initial gate locations will also reduce total number of

analyses.

Page 46: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Summary

Set up Input and Output

Set Optimization Module and Respective Options

Integrate with Analysis

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 46

Integrate with Analysis

Create and Run Task

Post-processing

“What-If?” Study

Page 47: VisualDOC: A Practical Software Integration and General ......s = 1 CP2, s = 2 CP4, TE s = 4 CP3, s = 3 VisualDOC: A Practical Software Integration and General Purpose Optimization

Conclusions

• This paper presents a solution suite for complete product design optimization,

namely VisualDOC.

• VisualDOC has the capability to wrap design and optimization algorithms

around any ASCII based 3rd party analysis software.

• VisualDOC can be used within parallel computing clusters where different

analysis are run concurrently on remote machines. This allows for solution of

VisualDOC: A Practical Software Integration and General Purpose Optimization Solution Suite 47

analysis are run concurrently on remote machines. This allows for solution of

large scale optimization problems that involve several computationally

intensive analysis codes.

• VisualDOC’s optimization routines have proven to improve product designs

and product design processes.