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

2D floating object in overInterDyMFoam...

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By RicardoLB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 5, 2019, 10:41
Default 2D floating object in overInterDyMFoam...
  #1
New Member
 
Ricardo Lopez
Join Date: Oct 2013
Posts: 19
Rep Power: 13
RicardoLB is on a distinguished road
Hello everyone!
I am starting to work with overset meshes and taken the floatingObject tutorial as a starting point. I want to get a 2D floating object setup to carry out simple heave decay tests (and eventually to add wave generation and absorption boundary conditions). I have a half-working setup ready.



I am getting this error repeatedly:
Quote:
--> FOAM FATAL ERROR:
Cell:2115 at0.42125 0 0.254285714286) zone:0 changed from hole to calculated but there is no donor
This happens in a cell which is in the last and second to last timesteps a hole... I attach an image. Can anybody give me hints on how to solve this problem?



I also observe some apparently strange movements of the floating object as if it where excited (I don't explain myself the initial acceleration from the initial position of non-equilibrium between the waterline and the submerged volume and the following steps). I think I have assigned the correct mesh groups and boundary conditions; are they correct?


I attach the case folder.


Greetings,
Ricardo
Attached Images
File Type: jpg Position_cell.jpg (192.6 KB, 97 views)
Attached Files
File Type: gz floatingBody2D.tar.gz (6.1 KB, 28 views)
Jim1310 likes this.
RicardoLB is offline   Reply With Quote

Old   August 15, 2019, 20:28
Default
  #2
New Member
 
Romain Ping
Join Date: Feb 2019
Posts: 3
Rep Power: 8
romainping is on a distinguished road
Hi Ricardo,

I am facing the same error message on OF 1812. I do not have this error on version 1712...
Have you found a solution ?
Thanks for your help,

Romain
romainping is offline   Reply With Quote

Old   December 22, 2023, 07:41
Lightbulb Solution
  #3
New Member
 
Dimitris Tsoumpelis
Join Date: Sep 2022
Location: Athens, Greece
Posts: 15
Rep Power: 4
Jim1310 is on a distinguished road
This is a case that particularly interests me, so i searched what the pitfall had been. Eventually it must be the fact that although there should be motion only in the plane, for some reason (probably due to arithmetic error) there is some parasitic movement-rotation outside of the plane. It can be seen in the log-file of the solver that initially there is an off-plane rotation of about ~10^(-30), which is gradually build up until ~10^(-6) where the simulation cruses. This can be easily solved by imposing movement constraints (see wiki-page: https://openfoamwiki.net/index.php/P...on_and_Damping). I imposed a plane constraint (movement only on the z-x plane) and an axis constraint (rotation only in y-axis) and it worked without a problem (my Of version: v2106).
Attached Files
File Type: gz floatingBody2D_o.tar.gz (6.4 KB, 20 views)
Jim1310 is offline   Reply With Quote

Old   December 24, 2024, 03:03
Default
  #4
New Member
 
Srinivas
Join Date: Jan 2024
Posts: 18
Rep Power: 3
sri_0548 is on a distinguished road
Hi Jim,


I am trying to simulate 2D floating cylinder in a numerical wave tank using interfoam solver (OpenFoam v2206). It is observed that the cylinder is sinking. I applied the constraints as you mentioned. Still no change in the result. Could you please check the case file and help me in solving this issue.


Thanks and regards
Srinivas
Attached Images
File Type: png Screenshot from 2024-12-24 12-39-19.png (8.7 KB, 10 views)
Attached Files
File Type: zip cyl_freedecay_4_c.zip (36.7 KB, 1 views)
sri_0548 is offline   Reply With Quote

Old   December 26, 2024, 15:24
Default
  #5
New Member
 
Dimitris Tsoumpelis
Join Date: Sep 2022
Location: Athens, Greece
Posts: 15
Rep Power: 4
Jim1310 is on a distinguished road
Hello Srinivas,


First of all this is a simulaiton of a box and i don't think that you can directly compare it with the 3D counterpart. In any case, from a look into your dynamicMeshDict i see that you have set the mass of the object to 21.6kg, which is too much given that the dimensions of the box are 0.5X0.01X0.2 (0.01 is the thickness of the mesh from extrudeMeshDict) and this leads you to a weight of 1kg if it had the same density with water. So i guess there is nothing wrong except that it crushes or slows down dramatically due to cells below the box beeing overly squished.


Best,
Dimitris
Jim1310 is offline   Reply With Quote

Old   December 26, 2024, 15:34
Default
  #6
New Member
 
Srinivas
Join Date: Jan 2024
Posts: 18
Rep Power: 3
sri_0548 is on a distinguished road
Thanks for the reply Jim.
Is it the correct technique to mimic a 3D cylinder in 2D? I constructed a 3D cylinder in STL file and converted it to 2D using snappyhexmesh and extrudemesh. Will the simulation work if I give mass according to 2D dimensions? Is there a way to simulate 3D geometry in 2D using a dynamic mesh?
sri_0548 is offline   Reply With Quote

Old   December 26, 2024, 17:25
Default
  #7
New Member
 
Dimitris Tsoumpelis
Join Date: Sep 2022
Location: Athens, Greece
Posts: 15
Rep Power: 4
Jim1310 is on a distinguished road
Well in 2D you essentially simulate the 3D motion of a very long prism having the section you see in 2D. I dont think there is any way this motion can be an approximation lets say for the disk, since its sections change if you cut them using the x-z plane... (with the z-axis beeing in the cenere of the cylinder). If you changed the orientation of the cylinder, so that the y-axis is the axis of symmetry you could approximate the falling motion in 3D of a very long cylinder, but i guess that it would be much different than what you are trying to simulate now.
Jim1310 is offline   Reply With Quote

Old   December 26, 2024, 23:05
Default
  #8
New Member
 
Srinivas
Join Date: Jan 2024
Posts: 18
Rep Power: 3
sri_0548 is on a distinguished road
Here, I want to simulate the heave motion of a cylinder under wave interaction. Generally for flow past cylinder we use circle in 2D. In my case the orientation is different because as an extension of this I want to use cylinder with conical bottom.If I use circle I can't get the effect of conical bottom for the same orientation. Is there any better way to do this?
sri_0548 is offline   Reply With Quote

Old   December 27, 2024, 14:34
Default
  #9
New Member
 
Srinivas
Join Date: Jan 2024
Posts: 18
Rep Power: 3
sri_0548 is on a distinguished road
Hi Jim,


I tried the simulating the floating box with wave interaction. This time I gave the properties according to rectangle box in the dynamicmeshdict. The wave is generated and the box is oscillating up and down. But after 6.25 seconds the simulation is crashed. The time step and CFL number are with in limits.I am not able to find out the reason. Please find the attachments I have send the error.txt along with the case file. Please help me to solve this.




Thanks and regards
Srinivas
Attached Images
File Type: png Screenshot from 2024-12-28 00-00-43.png (8.3 KB, 11 views)
Attached Files
File Type: zip cyl_float_casefile.zip (45.6 KB, 2 views)
sri_0548 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
engineFoam with layers - pressure problems when adding layers mturcios777 OpenFOAM Running, Solving & CFD 23 January 4, 2023 22:56
error in fireFoam, when running the case wallFireSpread2D zhoubiao1088 OpenFOAM Running, Solving & CFD 9 February 1, 2018 19:45
[foam-extend.org] Error compiling OpenFOAM-1.6-ext Canesin OpenFOAM Installation 137 January 20, 2016 15:56
Compilation error OF1.5-dev on Suse10.3 darenyang OpenFOAM Installation 0 April 29, 2009 05:55
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 08:36


All times are GMT -4. The time now is 04:37.