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

InterFoam: Rigid Body standing still and fluid moving against gravity

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By pferro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 21, 2021, 10:08
Default InterFoam: Rigid Body standing still and fluid moving against gravity
  #1
New Member
 
Daníel Freyr Hjartarson
Join Date: Sep 2020
Posts: 2
Rep Power: 0
dfhjartarson is on a distinguished road
Hi!

So, I am trying to setup a calm water simulation of a floating hull.
Since I have little experience with OpenFoam so far, I decided to start off with the DTC Hull example / tutorial provided with OpenFoam. My line of though was to just swap the DTC hull out for a hull I am interested in analysing and take things from there.
That has however proven tougher than I expected..

See attached image for the initial scene (marked T0). Here I've set a scalar clip filter on alpha_water at 0.34.

I've tried playing around with the initial height of the water in setFields but without luck.

Here's my the content of my setFields file:
Quote:
defaultFieldValues
(
volScalarFieldValue alpha.water 0
);

regions
(
// Set cell values
// (does zerogradient on boundaries)
boxToCell
{
box (-999 -999 -999) (999 999 0.15); //box (-999 -999 -999) (999 999 0.244);

fieldValues
(
volScalarFieldValue alpha.water 1
);
}

// Set patch values (using ==)
boxToFace
{
box (-999 -999 -999) (999 999 -1);

fieldValues
(
volScalarFieldValue alpha.water 1
);
}
);
The simulation runs for a little bit (0.0009 seconds), but the behaviour is just weird.. I've attached another photo of the end result (marked T00009). Again just Alpha_water.

The error I get from InterFoam is:
Quote:
Primary job terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
Is there a way I can see errorlogs form each individual process? Should I maybe run the simulation not in parallel to get the error?

I know it might not be a lot of details I'm providing, but that is simply because I'm a little lost.

Any ideas? I'll happily provide further information.
Thanks in advance.
Attached Images
File Type: jpg Alpha_water_T0.jpg (31.3 KB, 14 views)
File Type: jpg Alpha_water_T00009.jpg (38.5 KB, 13 views)
dfhjartarson is offline   Reply With Quote

Old   May 21, 2021, 16:50
Default
  #2
New Member
 
Paulin FERRO
Join Date: May 2021
Location: France
Posts: 21
Rep Power: 5
pferro is on a distinguished road
Quote:
Originally Posted by dfhjartarson View Post
Hi!

So, I am trying to setup a calm water simulation of a floating hull.
Since I have little experience with OpenFoam so far, I decided to start off with the DTC Hull example / tutorial provided with OpenFoam. My line of though was to just swap the DTC hull out for a hull I am interested in analysing and take things from there.
That has however proven tougher than I expected..

See attached image for the initial scene (marked T0). Here I've set a scalar clip filter on alpha_water at 0.34.

I've tried playing around with the initial height of the water in setFields but without luck.

Here's my the content of my setFields file:


The simulation runs for a little bit (0.0009 seconds), but the behaviour is just weird.. I've attached another photo of the end result (marked T00009). Again just Alpha_water.

The error I get from InterFoam is:

Is there a way I can see errorlogs form each individual process? Should I maybe run the simulation not in parallel to get the error?

I know it might not be a lot of details I'm providing, but that is simply because I'm a little lost.

Any ideas? I'll happily provide further information.
Thanks in advance.

Hello,


You have very likely a problem of mesh size.
Are you sure that your hull fit well in the DTC tutorial ?
By the way why a clip at alpha = 0.34 ?



Could you please give more information ? : mesh view, checkMesh, initial condition etc..



Paulin
dfhjartarson likes this.
pferro is offline   Reply With Quote

Old   May 28, 2021, 13:11
Default
  #3
New Member
 
Daníel Freyr Hjartarson
Join Date: Sep 2020
Posts: 2
Rep Power: 0
dfhjartarson is on a distinguished road
Hi PFerro,

thank you very much for the reply!

To answer your question regarding the clip of 0.34. To be frank, in my ignorance I just pulled the slider to somewhere between 0 and 1, it happened to land on .34. Maybe that is bad practice?

I've added the output of checkMesh. There are some skewed surfaces.

I've also attached an image of a size comparison of the DTC hull (blue) and the hull I'm interested in analysing (green).

I've also added a couple of screenshots of the mesh view of the hull. I don't know, is there a particular area of interest you'd need to see or can you maybe already see something odd from these images?
Attached Images
File Type: jpg Mesh_view_1.jpg (106.1 KB, 9 views)
File Type: jpg Mesh_view_2.jpg (116.4 KB, 8 views)
File Type: jpg Mesh_view_3.jpg (70.8 KB, 9 views)
File Type: jpg object_comparison.jpg (28.5 KB, 9 views)
Attached Files
File Type: txt CheckMesh_result.txt (11.8 KB, 2 views)
dfhjartarson 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



All times are GMT -4. The time now is 00:05.