Optimizing the Design of a Fuel Pod with NX and Maple - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Applications and Example Worksheets : Science and Engineering : Optimizing the Design of a Fuel Pod with NX and Maple

Optimizing the Design of a Fuel Pod with NX and Maple

Introduction

A manufacturer has designed a fuel pod in NX.  The fuel pod has hemispherical and conical caps, and a cylindrical midsection.

 

To minimize material costs, the manufacturer wants to minimize the surface area of the fuel pod while maintaining the existing volume

 

 

This application

 

• 

pulls the current dimensions of the fuel pod (radius of the hemispherical end, length of the cylindrical midsection, and height of the conical end) from the NX CAD model

• 

calculates the current volume of the fuel pod

• 

optimizes the dimensions to minimize the surface area while maintaining the existing volume

• 

and pushes the optimized dimensions back into the NX CAD model

 

To use this application, you must

 

• 

have a supported version of NX installed,

• 

ensure the NX-Maple link is working correctly (see NX for details).

• 

load canisterOptimization.prt in NX (this is the CAD model of the fuel pod),

 

> 

restart:with⁡Optimization:with⁡CAD:-NX:

Read Existing Design Parameters in Maple

> 

pars:=GetParameterNames⁡

> 

heightConeCurr≔GetParameterValueheightCone⋅GetParameterUnitsheightCone

heightConeCurr:=50.00⁢mm

(2.1)
> 

lenCentralCurr≔GetParameterValuelenCentral⋅GetParameterUnitslenCentral

lenCentralCurr:=60.00⁢mm

(2.2)
> 

radSphereCurr≔GetParameterValueradSphere⋅GetParameterUnitsradSphere

radSphereCurr:=15.00⁢mm

(2.3)

Define Expressions to Calculate the Volume and Surface Area of the Canister

> 

volCanister≔heightCone,lenCentral,radSphere→evalfπ radSphere2⁢heightCone3+π⁢radSphere2⁢lenCentral+2⁢π⁢radSphere33:

> 

vol≔volCanisterheightConeCurr,lenCentralCurr,radSphereCurr

vol:=61261.05675⁢mm3

(3.1)
> 

surfaceCanister≔heightCone,lenCentral,radSphere→evalf2⁢π⁢radSphere2+2⁢π⁢radSphere⁢lenCentral+π⁢radSphere⁢radSphere2+heightCone2:

> 

surfaceCanister⁡heightConeCurr,lenCentralCurr,radSphereCurr

9528.522740⁢mm2

(3.2)

Design Optimization

Minimize the surface area while maintaining the volume

> 

optValues≔MinimizesurfaceCanisterheightConeNew,lenCentralNew,radSphereNew,volCanisterheightConeNew,lenCentralNew,radSphereNew=volmm3,assume=nonnegative

optValues:=7660.22,heightConeNew=21.46,lenCentralNew=10.73,radSphereNew=23.99

(4.1)

Export New Design Parameters into NX

> 

assign⁡optValues2:

> 

SetParameterValue⁡heightCone,heightConeNew:

> 

SetParameterValue⁡lenCentral,lenCentralNew:

> 

SetParameterValue⁡radSphere,radSphereNew:

>