You are on page 1of 45

# Real CFD application tutorials

## Problem description and analysis purpose

Moving Wall BC

Problem Explanation

Analysis Purpose

Important Points

ocean

## 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

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

Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

screen.

## Click right bottom of mouse

and select Hide All Guiders

Results

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

Click OK

11

Results

Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

Results

only.

## Click Size Ctrl.

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

m

Click Apply

12

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

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

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

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

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

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)

Click OK

21

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

22

Solver

Results

Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

1 , 2.1 , 1

Tz : Check(Free)

Rz : Check(Free)
Click OK

Click OK

23

Results

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

Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

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

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

## Mesh Deformation : Check

Free Surface : Check

Click OK
Click Field Definition

27

Solver

Results

Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

## For pressure select

Pressure function.

Results

0.00088 m2/sec2

1.68e-5 m

function.
Click OK

28

Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

## Pressure Reference Location :

Check (0,0,0) m

Floatability by Density :
Uncheck if checked.

Mass Conservation : On
Click OK

29

Analysis Case

Solver

Results

Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

Meshing

Analysis Case

Pressure : Check
Velocity : Check

Click OK

30

Solver

Results

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

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

Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

last step

33

Meshing

Analysis Case

Solver

Results

Analysis
Settings

Geometry

Mat / Prop
/Function

Boundary
Conditions

Contacts

last step

34

Meshing

Analysis Case

Solver

Results

Analysis
Settings

Geometry

Materials/
Properties

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

Results

## Show Sea domain top

model geometry only.

Click Extract

shown.

35

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

## 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

Analysis
Settings

Geometry

Materials/
Properties

CFD data

Boundary
Conditions

Contacts

Meshing

Analysis Case

Ctrl+C
37

Solver

Results

Analysis
Settings

Geometry

Materials/
Properties

Boundary
Conditions

Contacts

Meshing

Analysis Case

Solver

Results

Click OK

only

38

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

Click OK

39

Results

Analysis
Settings

Geometry

Materials/
Properties

Boundary
Conditions

Contacts

## Right click on workplane and

select Hide All Meshes

40

Meshing

Analysis Case

Solver

Results

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

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

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

Analysis
Settings

Geometry

Materials/
Properties

Boundary
Conditions

Contacts

## You can get TOTAL

TRANSLATION result
because of flow pressure

Meshing

## You can get SOLID STRS

VON MISES result because