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

interDymFoam: the sinking ship smiles

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By wyldckat
  • 1 Post By wouter

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 1, 2014, 06:29
Default interDymFoam: the sinking ship smiles
  #1
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18
wouter is on a distinguished road
Hello All,
I try the floatingObject tutorial for interDyMFoam with OF2.3.x. I changed the weight so the object sinks. I also removed the initial wave from setFields.
I would expect the 10l object to sink at a weight of 10.5 kg but it does not. The weight has to be approx 12.5 kg. (meshsize?) Then it sinks but the mesh gets all contracted under the object and the simulation crashes.

Can any one help me changing the parameters I need.
Attached Images
File Type: png T0W12_5.png (13.1 KB, 117 views)
File Type: png T1_2W12_5.png (37.2 KB, 106 views)
File Type: png T2_4W12_5.png (46.0 KB, 144 views)
Attached Files
File Type: gz dynamicMeshDict.tar.gz (566 Bytes, 41 views)
File Type: gz part_log.interDymFoam.tar.gz (2.7 KB, 20 views)
wouter is offline   Reply With Quote

Old   March 1, 2014, 06:36
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Wouter,

Just to give you a heads-up on past experiences on this tutorial, here's a quote from an old post of mine:
Quote:
Originally Posted by wyldckat View Post
The latest talk I know of this topic is at this thread: http://www.cfd-online.com/Forums/ope...-tutorial.html
You can jump to the post #9 on that thread, if you want a very quick summary.
I have no idea if these issues have been somewhat fixed and/or figured out. Although you might want contact the original poster on the following thread: http://www.cfd-online.com/Forums/ope...tml#post462679 - since he's been going around this tutorial since back in November.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 1, 2014, 09:02
Default
  #3
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18
wouter is on a distinguished road
Hello Wyldckat,

thank you for the quick reply.

I had read the post, but I thought it was about multi processor so I ran in single processor. I could run up to a weight of 12 kg but the box just sank until the top was under water and there it stayed for 12 seconds even with waves. So I concluded that this problem was with the moving mesh not updating in the region where the mesh is contracted and I hoped this was a parameter what I had to change. I do not know what parameter but I will try to find out otherwise I have to find another way to let a object sink.

Best regards
Wouter
wouter is offline   Reply With Quote

Old   March 1, 2014, 10:17
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Wouter,

I've taken a better look into the 3rd image and that very compressed mesh at the base of the box is very suspicious, specially for Courant related simulations.
Are you able to change the dynamic mesh settings to have a wider distance on the propagation/compression of the cells?

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 1, 2014, 15:49
Default
  #5
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18
wouter is on a distinguished road
Hello wyldckat,

Thanks again for checking. I have no idea (yet) to change the dynamic mesh but I will try to find out.

Best Regards
Wouter
wouter is offline   Reply With Quote

Old   March 2, 2014, 10:38
Default
  #6
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18
wouter is on a distinguished road
Hello All,
I thought to have a remedy for the symptom of contracting cells: mapFields
first change position of object in topoSetDict with the help of sixDoFRigidBodyMotionState in time/uniform but the mapping does not work correctly so I have to find something else.

If anyone knows something else please let me know.
Best regards
Wouter
Attached Files
File Type: gz log.mapFields.tar.gz (1.3 KB, 7 views)
wouter is offline   Reply With Quote

Old   March 13, 2014, 18:31
Default
  #7
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18
wouter is on a distinguished road
Hello All,

Just an update. I tried to run the same problem in foam-3.0. It looks like it runs all the way but I am not able to look at the results in paraview. I saw in the forum that there was a way using the case.openFoam twice but that did not work either. The object stayed in the same place only the surface moved.

any help is appreciated
regards
wouter
wouter is offline   Reply With Quote

Old   March 23, 2014, 13:24
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Wouter,

Indeed, the "floatingObject" tutorial seems to be broken in FOAM-Extend 3.0. Feel free to report this issue at their bug tracker: http://sourceforge.net/apps/mantisbt/openfoam-extend/

In the meantime, you might want to try out the latest OpenFOAM 2.3.x, because they've made an interesting update to at particular tutorial: https://github.com/OpenFOAM/OpenFOAM...4d6c746a5a1d02 - The tutorial in question is "multiphase/potentialFreeSurfaceFoam/oscillatingBox" and it is, as of that commit, using a new boundary condition they implemented recently in 2.3.x, namely "fixedNormalInletOutletVelocity".

Best regards,
Bruno
james.conger likes this.
__________________
wyldckat is offline   Reply With Quote

Old   March 23, 2014, 13:57
Default
  #9
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18
wouter is on a distinguished road
thank you wyldckat.

I tried that tutorial you mentioned, but I do not think that this helps me. My ultimate goal is to model the lemon pip in a glass of tonic (with or without the gin). This pip sinks after a while and than starts to float again because of the CO2 bubbles attaching themselves to the pip. When the pip reaches the surface the bubbles detaches themselves and the pip sinks again. This is a very ambitious endeavour and will probably take forever. So my first step was to make the pip sink and/or rise. I need to figure out how to attach a bubble and make it grow by diffusion of the CO2. The pip will tumble because the bubble will not always attach in the line of cog so there will be a momentum on the pip. A lot to do and so little knowledge of OpenFoam still.

Thanks again for the support
Best regards
Wouter
wouter is offline   Reply With Quote

Old   March 15, 2021, 06:59
Default sinking ship
  #10
Member
 
Deutschland
Join Date: Sep 2020
Posts: 69
Rep Power: 6
vava10 is on a distinguished road
Hey,

I am simulating a kayak and my ship is sinking as well.

Can you help? I only have 2 more week to submit it

dynamicMeshDict
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dynamicFvMesh   dynamicMotionSolverFvMesh;

motionSolverLibs ("libsixDoFRigidBodyMotion.so");

motionSolver    sixDoFRigidBodyMotion;

patches         (hull);
innerDistance   0.3;
outerDistance   1;

centreOfMass    (-2.63034697966 0.0 0.0244732718937);
mass            38.5;
momentOfInertia (0.222320255589 41.6518680701 41.5667249019);
rhoInf          1;
report          on;

value           uniform (0 0 0);

accelerationRelaxation 0.4;

solver
{
    type Newmark;
}

ramp
{
    type     quadraticRamp;//this
    start    0;
    duration 10;
}

constraints
{
    zAxis
    {
        sixDoFRigidBodyMotionConstraint line;
        direction     (0 0 1);
    }
    yPlane
    {
        sixDoFRigidBodyMotionConstraint axis;
        axis          (0 1 0);
    }
}

restraints
{
    translationDamper
    {
        sixDoFRigidBodyMotionRestraint linearDamper;
        coeff         8596;
    }
    rotationDamper
    {
        sixDoFRigidBodyMotionRestraint sphericalAngularDamper;
        coeff         11586;
    }
}


// ************************************************************************* //
fvScheme

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

ddtSchemes
{
    default         Euler;
}

gradSchemes
{
    default         Gauss linear;
}

divSchemes
{
    div(rhoPhi,U)   Gauss linearUpwind grad(U);
    div(phi,alpha)  Gauss vanLeer;
    div(phirb,alpha) Gauss linear;
    div(phi,k)      Gauss linearUpwind limitedGrad;
    div(phi,omega)  Gauss linearUpwind limitedGrad;
    div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}

laplacianSchemes
{
    default         Gauss linear corrected;
}

interpolationSchemes
{
    default         linear;
}

snGradSchemes
{
    default         corrected;
}

wallDist
{
    method meshWave;
}


// ************************************************************************* //

fvSolution
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
    "alpha.water.*"
    {
        nAlphaCorr      3;
        nAlphaSubCycles 1;
        cAlpha          1;
        icAlpha         0;

        MULESCorr       yes;
        nLimiterIter    15;
        alphaApplyPrevCorr  yes;

        solver          smoothSolver;
        smoother        symGaussSeidel;
        tolerance       1e-10;
        relTol          0;
        minIter         1;
    }

    "pcorr.*"
    {
        solver          GAMG;

        smoother        DIC;

        tolerance       1e-3;
        relTol          0;
    };

    p_rgh
    {
        solver          GAMG;

        smoother        DIC;

        tolerance       5e-8;
        relTol          0;
    };

    p_rghFinal
    {
        $p_rgh;
        relTol          0;
    }

    "(U|k|omega).*"
    {
        solver          smoothSolver;

        smoother        symGaussSeidel;
        nSweeps         1;

        tolerance       1e-7;
        relTol          0;
        minIter         1;
    };
}

PIMPLE
{
    momentumPredictor no;

    nOuterCorrectors 2;
    nCorrectors      2;
    nNonOrthogonalCorrectors 0;

    correctPhi      yes;
    moveMeshOuterCorrectors yes;
    turbOnFinalIterOnly yes;

 residualControl
 {
        p_rgh
        {
            tolerance 1e-04;//this
            relTol 0;
            absTol 0;
        }
 }

}

relaxationFactors
{
    equations
    {
        ".*" 1;
    }
}

cache
{
    grad(U);
}


// ************************************************************************* //


controlDict

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application     interFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         5;

deltaT          0.0001;

writeControl    adjustable;

writeInterval   1;

purgeWrite      0;

writeFormat     binary;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable yes;

adjustTimeStep  yes;

maxCo           0.95;

maxAlphaCo      0.95;

maxDeltaT       0.1;


functions
{
    forces
    {
        type            forces;
        libs            ("libforces.so");
        patches         (hull);
        rhoInf          1000.0;
        log             on;
        writeControl    timeStep;
        writeInterval   2;
        CofR            (-2.4453 0 0.1155);
    }
    yPlus
    {
        type            yPlus;
        libs            ("libfieldFunctionObjects.so");
        writeControl    writeTime;
        patches         (hull);
    }

}


// ************************************************************************* //




Thank you in advance
vava10 is offline   Reply With Quote

Old   March 15, 2021, 19:24
Default
  #11
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18
wouter is on a distinguished road
hello vava10,
I am sorry to tell you that I did not succeeded in solving this problem. It has been a long time I worked with OF.


Hope you find the solution,
Best
Wouter

vava10 likes this.
wouter 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
Pressure instabilities with interDyMFoam for the floatingObject case nbadano OpenFOAM Running, Solving & CFD 15 October 15, 2021 07:35
Problem with p_rgh with interDyMFoam in a ship roll decay test karmo OpenFOAM Running, Solving & CFD 1 August 23, 2012 18:07
error using interDyMFoam with kOmegaSST to simulate sloshing anmartin OpenFOAM Running, Solving & CFD 0 July 20, 2010 14:21
Flow past a ship model Ankur Srivastava Siemens 6 November 4, 2008 05:02
Flow around ship Gundul CFX 1 August 14, 2008 01:45


All times are GMT -4. The time now is 17:46.