CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

DTCHull Ship Resistance Tutorial - Morphing vs Overset Dynamic Mesh

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 23, 2022, 12:45
Default Setting the air/water interface z value
  #21
ibe
New Member
 
Join Date: Oct 2022
Posts: 11
Rep Power: 3
ibe is on a distinguished road
I'd like to run a set of hulls using the DTCHull as a starting basis.

The approach I'm considering uses

1) a script to convert the points to a case*.stl file

2) where the script resets the waterline to z=0 based on the design displacement prior to outputing the .stl file.
This way, different hulls can be run without changing the blockMeshDict file.

I have two questions on the blockMeshDict file:



I ___believe the 12:15 vertices

(-26 -19 0.244)
(16 -19 0.244)
(16 0 0.244)
(-26 0 0.244)


define the vertices that air and water share at the interface.
I thought I'd set z_waterline from 0.244 to 0.0 and things would work out,
but the mesh creation is complaining.
also
I don't quite get how blockmeshdict maps the vertices to the blocks.
I've attached a .pdf with the vertices labeled that I"m using to sort things out.
Where are these blocks (each hex line ) assigned to atmo/inlet, outlet,bottom,side, midplane . blocks
(
hex (0 1 2 3 4 5 6 7) (42 19 50) simpleGrading (1 1 0.05)
hex (4 5 6 7 8 9 10 11) (42 19 50) simpleGrading (1 1 1)
hex (8 9 10 11 12 13 14 15) (42 19 4) simpleGrading (1 1 1)
hex (12 13 14 15 16 17 18 19) (42 19 4) simpleGrading (1 1 1)
hex (16 17 18 19 20 21 22 23) (42 19 40) simpleGrading (1 1 1)
hex (20 21 22 23 24 25 26 27) (42 19 20) simpleGrading (1 1 5)
);
Attached Files
File Type: pdf vertices_blockmeshdict.pdf (20.1 KB, 8 views)
ibe is offline   Reply With Quote

Old   December 23, 2022, 18:17
Default
  #22
New Member
 
Nick
Join Date: Dec 2021
Posts: 11
Rep Power: 4
myozinaung is on a distinguished road
Quick answer:
When you fully understand how blcokMeshDict works, your problems will be solved.

Those hex blocks are the blocks stacked on top of each other.
e.g. first hex --> 0 1 2 3 are lower corners of rectangular block, 4 5 6 7 are the upper corners.
Second hex block lies on top of first block. That is why they share the corners 4 5 6 and 7.
Those hex blocks define the mesh refinement in the z-direction of the whole domain including the free surface region. You will see third and fourth hex blocks are just below and above the water surface. So, if you change the draft of the ship, you should also move z coordinate of vertices 12:15. At the same time you should also adjust the other z coordiantes just below and above vertices 12:15 so that vertices 12:15 still lie between them.
That is only modifying the mesh. The actual water level is defined in setFieldDict. That has to be modified too.

The boundaries: inlet, outlet, bottom, etc. are defined using the faces of those stacked blocks.
e.g. inlet, outlet, midplane, side will use the faces of all six hex blocks while bottom and atmosphere(top) will only use the lower and upper faces of bottom hex block and top most hex block respectively.

I hope this helps you.
myozinaung is offline   Reply With Quote

Old   August 2, 2023, 10:14
Default Solution diverges with planing hull
  #23
New Member
 
Paul Jakob
Join Date: Mar 2022
Posts: 4
Rep Power: 4
pj_design is on a distinguished road
Hello everyone,
thank you myozinaung for sharing your simulation setup! It is really helpfull and I was able to run your setup.


I have also tried to run the simulation with a different typ of hull, a planning hull. The problem that I am facing is, that I get very high vertical velocity oscillations at the beginning of the simulation. Similar to your setup but way larger and the solution diverges.


Has anyone experienced a similar behaviour? Things I have tried so far:


1. restrict linear motion in z-direction so that the hull can only rotate around the y-axes => soltion converges, but as soon as I allow linear motion in z-direction I get very high oscillations in z direction again



2. set up a velocity ramp at the inlet => problem persists


3. set the timestep to a very low value dt=1e^-5 => problem persists


4. use a linear damping constraint in dynamicMeshDict => problem persists


Has anyone got an idea how to dampen the rigidBody motions at the beginning of the simulation? Thank you for your help!
pj_design is offline   Reply With Quote

Old   August 2, 2023, 10:24
Default
  #24
New Member
 
Nick
Join Date: Dec 2021
Posts: 11
Rep Power: 4
myozinaung is on a distinguished road
Have you tried increasing the damping coefficients in the dynamicMeshDict?

restraints
{
translationDamper
{
type linearDamper;
body hull;
coeff 8596; // THIS ONE
}

rotationDamper
{
type sphericalAngularDamper;
body hull;
coeff 11586;
}
}

And also these:

accelerationRelaxation 0.8; // Check the documentation --> to increase or decrease
accelerationDamping 0.9; // Check the documentation --> to increase or decrease
myozinaung is offline   Reply With Quote

Old   August 2, 2023, 10:54
Default
  #25
New Member
 
Paul Jakob
Join Date: Mar 2022
Posts: 4
Rep Power: 4
pj_design is on a distinguished road
Hallo myozinaung,
thank you for your fast reply! The damping restraints did not help. Even with absurd high numbers.


But accelerationRelaxation and accelerationDamping do help. At the moment I don't know how low I should go with these values, but I will give you a feedback after I have done some experimenting.


Thank you!
pj_design is offline   Reply With Quote

Old   August 23, 2023, 10:35
Default
  #26
New Member
 
Nick
Join Date: Dec 2021
Posts: 11
Rep Power: 4
myozinaung is on a distinguished road
Quote:
Originally Posted by pj_design View Post
Hallo myozinaung,
thank you for your fast reply! The damping restraints did not help. Even with absurd high numbers.


But accelerationRelaxation and accelerationDamping do help. At the moment I don't know how low I should go with these values, but I will give you a feedback after I have done some experimenting.


Thank you!
Any progress or update?
myozinaung is offline   Reply With Quote

Old   January 17, 2024, 20:16
Default FOAM FATAL IO ERROR: (openfoam-2206 patch=221104) Unexpected EOF while reading dictio
  #27
New Member
 
Mohammad Shakhawat Khan
Join Date: Aug 2023
Posts: 6
Rep Power: 2
Shakhawat is on a distinguished road
Quote:
Originally Posted by myozinaung View Post
The problem is now resolved. The resistance values are similar for both morphing and overset cases.
If you are interested in the case files, check the link below.

https://github.com/myozinaung/DTCMoving_Overset
I have gone through your files...while running overinterDyMFoam its saying error...I tried in openfoam 2312 version...the error is below-

--> FOAM FATAL IO ERROR: (openfoam-2206 patch=221104)
Unexpected EOF while reading dictionary entry

file: constant/dynamicMeshDict at line 100.

From static bool Foam::entry::New(Foam::dictionary&, Foam::Istream&, Foam::entry::inputMode, int)
in file db/dictionary/entry/entryIO.C at line 166.

FOAM exiting


Update- It was mistake of setting up the dynamicMeshDict...

Last edited by Shakhawat; January 17, 2024 at 21:23. Reason: Solved problem...
Shakhawat is offline   Reply With Quote

Old   January 18, 2024, 16:49
Default
  #28
New Member
 
Mohammad Shakhawat Khan
Join Date: Aug 2023
Posts: 6
Rep Power: 2
Shakhawat is on a distinguished road
Quote:
Originally Posted by pj_design View Post
Hallo myozinaung,
thank you for your fast reply! The damping restraints did not help. Even with absurd high numbers.


But accelerationRelaxation and accelerationDamping do help. At the moment I don't know how low I should go with these values, but I will give you a feedback after I have done some experimenting.


Thank you!

Hello would you kindly mention your hull speed??
I have also decreased the value of relaxation and damping...
Shakhawat is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combining multiSolidBodyMotionSolver (Overset Mesh) + SolidBodyDisplacementLaplacian egebat7 OpenFOAM Running, Solving & CFD 4 September 12, 2023 21:38
foam-extend-4.1 release hjasak OpenFOAM Announcements from Other Sources 19 July 16, 2021 05:02
dynamic mesh tutorial files for fluent hesham ANSYS 0 February 2, 2016 19:51
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 18:10


All times are GMT -4. The time now is 08:47.