You are on page 1of 45

Real CFD application tutorials

3D free surface boat sink

Problem description and analysis purpose

Moving Wall BC

Problem Explanation

Analysis Purpose

Important Points

Simulate Ship hull moving on the Wave

Use NFX CFD function simulate

ocean

Ship hull moving on the Wave ocean Level surface : lindelta(-z,0.3)

Velocity at X direction : 2.424+0.6*sin(3.66*t)


Pressure:
if(z<=0)then(1.17*9.806*z)else(0)endif
Gyration Radius Vector : 1, 2.1, 1
Symmetric flow Y direction location : 6,-6

Change interface to Analysis Mode


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

Results

Open midas NFX

Click on
Application>Analysis Mode
Flow Analysis is always
performed in Analyst
Mode

Check the Units


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

Results

Go to the
Tools>Options

Go to the
General> Unit System and
select:

N-m-J-sec
Enter 9.8 m/sec for the
acceleration of gravity

These are the best


units to work in CFD
as it is the basic unit
of the material DB in
NFX

Click on Apply

Verify that the value


defined is correct

Check the Fluid Materials(Incompressible)


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Condition

Contacts

Meshing

Analysis Case

Solver

Results

Options>General>
Material (CFD)

Select:
Compressibility Solver Type :
Incompressible
Compressibility Type :
Incompressible

Click on Apply

Incompressible solver is almost


always used, except when the
material definition imposes to
use compressive solver (natural
convection and compressible
flow).
Even when using compressible
solver, the flow stays
incompressible for flows with a
Mach number inferior to 0.3.

Check the Element Formulation (Standard)


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Condition

Contacts

Meshing

Analysis Case

Options>Analysis/Results
Under Element Formulation
select:
Standard(Stability)

Click OK

Solver

Results

New Project
Analysis
Settings

Geometry

Click New

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Analysis Case

Model Type select 3D


Check Unit System is
N-m-J-sec

Click OK

Solver

Results

Import Geometry
Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Select Geomerty -> Import


-> Import CAD File

Analysis Case

Solver

Results

File format select


Parasolid(10 to
24)Files(*.x.t;)
CAD file path select
boat3d-sink.X_T
Select Open

Hide All Guiders


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

Show the model on the


screen.

Click right bottom of mouse


and select Hide All Guiders

Results

Define Fluid Material


Analysis
Settings

Geometry

Mat/Properties
/Function

Boundary
Conditions

Contacts

Meshing

Analysis

Solver

Case

Right click on Material and


select Fluid(CFD)

Name input CFD Fluid


Mass Density : 1000
kg/m^3
Viscosity : 0.001kg/(m*sec)
Click OK

10

Results

Define Properties
Analysis
Settings

Geometry

Mat/Properties
/Function

Boundary
Conditions

Contacts

Meshing

Analysis
Case

Solver

Right click on Property ->


3D -> select Add

Select CFD 3D
Add Name: CFD Fluid

Select Material 2: CFD Fluid


Click OK

11

Results

Mesh Generation Size control definition


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

Results

Show Sea Domain geometry


only.

Click Size Ctrl.


Select Object(s) : Select
horizontal external sea
domain edges only
Total: 8 Object(s)

Size Method -> Size : 0.2


m

Click Apply

12

Mesh Generation Size control definition


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Analysis Case

Select Object(s) : Select


external boat edges only
Total:7 Object(s)
Size Method -> Size : 0.15
m

Click Apply

13

Solver

Results

Mesh Generation Size control definition


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Analysis Case

Select Object(s) : Select


middle boat edges only
Total: 4 Object(s)
Size Method -> Size : 0.1
m

Click OK

14

Solver

Results

Mesh Generation Size control definition


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

Results

Click 3D
Select Object(s) : Select all
displayed objects
Total: 2 Object(s)

Size Method -> Size : 0.3


m
Match Adjacent Face :
Check
Click >>

Merge Nodes : Check

Higher-Order Element :
Uncheck
Click OK
Click OK

15

Mesh Generation Size control definition


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

You can view the boat


mesh model and sea domain
(mesh size around boat is
smaller than ocean mesh size)

16

Meshing

Analysis Case

Solver

Results

Define CFD Function


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

Name input : Inlet

Expression :
2.424+0.6*sin(3.66*t)
Click Apply

17

Results

Define CFD Function


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

Name input : Pressure

Expression : if(z<=0)then(1.17*9.806*z)else(0)endif
Click Apply

18

Results

Define CFD Function


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Analysis Case

Name input : Level

Expression : lindelta(-z,0.3)
Click OK

19

Solver

Results

Define inflow boundary conditions: Inlet


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Click Inlet
Type select Face
Select Object(s) : Select the
vertical faces in front of sea
domain
Total: 2 Object(s)

Type change to Ref.CSys


Velocity Vx select Inlet
function.

Click OK

20

Analysis Case

Solver

Results

Define inflow boundary conditions: Outlet


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

Results

Click Outlet
Type select Face
Select Object(s) : Select
back faces of sea domain
Total: 2 Object(s)

Pressure value: 0 N/m2

Click OK

21

Define inflow boundary conditions: Wall


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Analysis Case

Click Wall
Type select Face

Select Object(s) : Select the


faces of boat
Total: 5 Object(s)
Wall Type select
Dimensionless Wall Distance
Wall Distance : 65
Motion Control : Check

Click on Wall Motion icon.

22

Solver

Results

Define Wall Motion: Body Mass &Tx & Rz


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

Body Mass : Auto Estimate

Input Gyration Radius Vector


1 , 2.1 , 1

Tz : Check(Free)

Rz : Check(Free)
Click OK

Click OK

23

Results

Define fluid boundary conditions: Wall


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Name input Floor


Set Type to: Face

Select Object(s) : Select the


bottom face of sea domain
Total:1 Object(s)
Wall Type: Inviscid
Click OK

24

Meshing

Analysis Case

Solver

Results

Define fluid boundary conditions: Mesh Deformation


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Click Mesh Deformation

Meshing

Analysis Case

Solver

Type change to Face


Select Object(s) : Select the
5 faces from sea domain
Total: 5 Object(s)
Click OK

25

Results

Define CFD analysis case : Transient


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

Click General
Set the Solution Type to
Transient CFD
Click Analysis control

26

Results

Define CFD analysis case : Advanced Modules


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Time Increment 0.01 sec


Number of Steps : 1000
Max. Iteration : 1

Meshing

Analysis Case

Interval : 1 Step
Plane31 Y-Location : 6.-6
m

Click Advanced Modules

Mesh Deformation : Check


Free Surface : Check

Click OK
Click Field Definition

27

Solver

Results

Define CFD analysis case : Field Definition


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

For pressure select


Pressure function.

Results

Velocity Vx : 2.424 m/sec

Eddy Kinetic Energy :


0.00088 m2/sec2

Eddy Length Scale :


1.68e-5 m

For level select Level


function.
Click OK

28

Define CFD analysis case : Module Data


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Click Module Data

Meshing

Turbulence Model : 1Equation Spalart-Allmaras

Pressure Reference Location :


Check (0,0,0) m

Floatability by Density :
Uncheck if checked.

Mass Conservation : On
Click OK

29

Analysis Case

Solver

Results

Define CFD analysis case : Output Control


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Analysis Case

Click Output Control


Pressure : Check
Velocity : Check

Click OK

30

Solver

Results

Define CFD analysis case : Field Definition


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

Click Inner Iteration


Pressure Inner Iteration :2
Velocity Inner Iteration :2

Temperature Inner
Iteration :2
Turbulence Inner Iteration :2

Click OK

Click OK

31

Results

Calculated process to review running curve


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Select Transient CFD-1 then


click right bottom of mouse
to select solve
You can observe there type
curves on the screen and
appear downgrade trend if
CFD Norms < 0.01 and when
calculate 1000 steps , the
solver will stop

32

Meshing

Analysis Case

Solver

Results

CFD result : preview Velocity XYZ contour plot


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Display VEL XYZ result of the


last step

33

Meshing

Analysis Case

Solver

Results

CFD result : preview LEVEL contour plot


Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Display LEVEL result of the


last step

34

Meshing

Analysis Case

Solver

Results

Define CFD analysis case : Show Model


Analysis
Settings

Geometry

Materials/
Properties

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

Results

Show Sea domain top


model geometry only.

Click Extract

Move to the position as


shown.

35

Define CFD analysis case : Get Flow pressure values


Analysis
Settings

Geometry

Materials/
Properties

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

Results

Select Result Type : Fluid


Flow

Result : PRESSURE
Step Results : Transient CFD

Select Node

Set selection filter to Face

Select boat shape faces of


fluid model
Total: 2 Object(s)

Show Sea domain bottom


geometry only
Select rest boat faces of fluid
model
Total: 2 Object(s)

Click Table

36

Define CFD analysis case : Flow pressure datas


Analysis
Settings

Geometry

Materials/
Properties

Select X Y Z (m) Transient


CFD data

Boundary
Conditions

Contacts

Meshing

Analysis Case

Click Ctrl + C of keyboard

Ctrl+C
37

Solver

Results

Define CFD analysis case : Ship Mesh Definition


Analysis
Settings

Geometry

Materials/
Properties

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

Results

Click Property ->3D->Add

Name input Boat


Click OK

Only show Boat geometry


only

Click Mesh -> 3D

38

Define CFD analysis case : Setup Mesh


Analysis
Settings

Geometry

Materials/
Properties

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

Select the boat model to


create the mesh model
(Total is 1 Object)
Size input 0.1

Property select Boat

Mesh Set : Boat


Click OK

39

Results

Define CFD analysis case : Hide Mesh


Analysis
Settings

Geometry

Materials/
Properties

Boundary
Conditions

Contacts

Right click on workplane and


select Hide All Meshes

40

Meshing

Analysis Case

Solver

Results

Define CFD analysis case : Get Flow pressure values


Analysis
Settings

Geometry

Materials/
Properties

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

Click Constraint

Enter the Name as Fix


Change type to Face
Select top face of the boat
model
(Total is 1 Object)
Condition select Fixed icon

Click OK

41

Results

Ship structure analysis because of flow pressure loading


Analysis
Settings

Geometry

Materials/
Properties

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

Results

Click Interpolation
Result Type : Normal Pressure
(Scalar)
Type select 3D Element
Face
From selection toolbar select
Face

Select all external side faces


of boat.
Total: 4 Object(s)
Click :OK

Ctrl+V
42

Ship structure analysis because of flow pressure loading


Analysis
Settings

Geometry

Materials/
Properties

Boundary
Conditions

Contacts

Click right bottom of mouse


then select Linear Static

Meshing

Analysis Case

Solver

Results

Select and right click on


Linear Static analysis. Then
select Edit.
Set up the Boat mesh to
active mesh set as it shown:

Click OK

Drop of mouse
43

Ship structure analysis because of flow pressure loading


Analysis
Settings

Geometry

Materials/
Properties

Boundary
Conditions

Contacts

Select and right click on


Linear Static analysis. Then
select Solve.

Meshing

44

Analysis Case

Solver

Results

Get Ship structure analysis result because of flow pressure loading


Analysis
Settings

Geometry

Materials/
Properties

Boundary
Conditions

Contacts

You can get TOTAL


TRANSLATION result
because of flow pressure
loading.

Meshing

You can get SOLID STRS


VON MISES result because
of flow pressure loading.

45

Analysis Case

Solver

Results

You might also like