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

Viv dynamicmesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 16, 2020, 08:05
Default Viv dynamicmesh
  #1
New Member
 
ROIN bin
Join Date: Dec 2019
Posts: 12
Rep Power: 6
Beingzzz is on a distinguished road
Dear all,I was planning to do some cylinder bypassing in the pipeline and first planned the 2D case with reference to wingmotion in pimpleFoam, but after a while I get the following error (forces forces: not including porosity effects)What changes should I make to improve this situation or have a better idea thanks.
Quote:
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dynamicFvMesh dynamicMotionSolverFvMesh;

motionSolverLibs ("libsixDoFRigidBodyMotion.so");

motionSolver sixDoFRigidBodyMotion;

patches (scylinder);
innerDistance 10;
outerDistance 8;

mass 1;
centreOfMass (0 16.125 0.5);
momentOfInertia (1.958864357 3.920839234 2.057121362);

g (0 -9.81 0);
rho rhoInf;
rhoInf 1;
report on;


solver
{
type symplectic;
}

constraints
{

yAxis
{
sixDoFRigidBodyMotionConstraint axis;
axis (0 1 0);
}
}

restraints
{

axialSpring
{
sixDoFRigidBodyMotionRestraint linearAxialAngularSpring;

axis (0 1 0);
stiffness 700;
damping 0.5;
}
}

Last edited by Beingzzz; November 16, 2020 at 09:37.
Beingzzz is offline   Reply With Quote

Old   November 16, 2020, 17:18
Default
  #2
Senior Member
 
Join Date: Oct 2017
Posts: 131
Rep Power: 9
Krapf is on a distinguished road
Quote:
Originally Posted by Beingzzz View Post
but after a while I get the following error (forces forces: not including porosity effects)
This is not an error message. Take a look at the last few lines of the log file.
Krapf is offline   Reply With Quote

Old   November 17, 2020, 00:00
Default
  #3
New Member
 
ROIN bin
Join Date: Dec 2019
Posts: 12
Rep Power: 6
Beingzzz is on a distinguished road
Quote:
Originally Posted by Krapf View Post
This is not an error message. Take a look at the last few lines of the log file.
Thanks, you're right. This is the last picture in question. I then modified the mesh density, the mesh motion parameters of the moving mesh and the pressure solver in fvsolution, but it only advanced the calculation a little bit, and then the equation collapsed. Is it because of the wall, there is a size limit on the upload file and I can't show the full case. Thanks again.
Code:
--> FOAM FATAL ERROR:
Continuity error cannot be removed by adjusting the outflow.
Please check the velocity boundary conditions and/or run potentialFoam to initialise the outflow.
Total flux              : 1.92691e+06
Specified mass inflow   : 0
Specified mass outflow  : 56904.1
Adjustable mass outflow : 2.10588e-14


    From function bool Foam::adjustPhi(Foam::surfaceScalarField&, const volVectorField&, Foam::volScalarField&)
    in file cfdTools/general/adjustPhi/adjustPhi.C at line 107.
Beingzzz is offline   Reply With Quote

Old   November 17, 2020, 02:49
Default
  #4
Senior Member
 
Join Date: Oct 2017
Posts: 131
Rep Power: 9
Krapf is on a distinguished road
I'm not sure if I can help you with that. What are your pressure/velocity boundary conditions at inlet and outlet? Does it run without this error if you deactivate the dynamic mesh?
Krapf is offline   Reply With Quote

Old   November 17, 2020, 03:13
Default
  #5
New Member
 
ROIN bin
Join Date: Dec 2019
Posts: 12
Rep Power: 6
Beingzzz is on a distinguished road
Quote:
Originally Posted by Krapf View Post
I'm not sure if I can help you with that. What are your pressure/velocity boundary conditions at inlet and outlet? Does it run without this error if you deactivate the dynamic mesh?
The same conditions I've run smoothly using icoFoam, I've posted the other setup files later. I have a feeling there is something wrong with the parameter settings. Anyway thank you very much.
fvsolusion
Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    
    object      fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
     "pcorr.*"
    {
        solver          smoothSolver;
        smoother        symGaussSeidel;
        tolerance       1e-05;
        relTol          0;
    }
    p
    {
        $pcorr;
        tolerance        1e-7;
        relTol           0.01;
    }

    pFinal
    {
        $p;
        tolerance        1e-7;
        relTol           0;
    }

    U
    {
        solver          smoothSolver;
        smoother        symGaussSeidel;
        tolerance       1e-05;
        relTol          0;
    }
	
	UFinal
    {
        $U;
        tolerance       1e-05;
        relTol          0;
    }
	"(k|nut|omega)"
    {
        solver          smoothSolver;
        smoother        symGaussSeidel;
        tolerance       1e-06;
        relTol          0.01;
    }

    "(k|nut|omega)Final"
    {
        $U;
        tolerance       1e-06;
        relTol          0;
    }
	cellDisplacement
    {
        solver          smoothSolver;
        smoother        symGaussSeidel;
        tolerance       1e-06;
        relTol          0.01;
    }
}


PIMPLE
{
    correctPhi          yes;
    nOuterCorrectors    2;
    nCorrectors         1;
    nNonOrthogonalCorrectors 0;
pRefCell 1001; 
pRefValue 0; 
}

relaxationFactors
{
    fields
    {
        p               0.3;
    }
    equations
    {
        "(U|k|omega)"   0.7;
        "(U|k|omega)Final" 1.0;
    }
}

cache
{
    grad(U);
}


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

ddtSchemes
{
    default         Euler;
}

gradSchemes
{
    default         Gauss linear;
    grad(p)         Gauss linear;
	grad(U)         Gauss linear;
}

divSchemes
{
    default         none;
	div(phi,U)      Gauss linearUpwind grad(U);
    div(phi,k)      Gauss limitedLinear 1;
    div(phi,omega)  Gauss limitedLinear 1;
    div((nuEff*dev2(T(grad(U))))) Gauss linear;
}

laplacianSchemes
{
    default         Gauss linear limited corrected 0.5;
}

interpolationSchemes
{
    default         linear;
}

snGradSchemes
{
    default         corrected;
}

wallDist
{
    method meshWave;
}
// ************************************************************************* //
Attached Files
File Type: zip 0.zip (75.8 KB, 3 views)
Beingzzz is offline   Reply With Quote

Old   November 18, 2020, 11:39
Default
  #6
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
There is tutorial available which computes 2d vortex induced vibration (viv) of a circular cylinder in laminar flow:


https://wiki.openfoam.com/Vortex_ind...ichael_Alletto


This may be helpful
mAlletto is offline   Reply With Quote

Old   February 13, 2022, 04:02
Default Phase Angle Calculation
  #7
Member
 
zink
Join Date: Oct 2015
Posts: 30
Rep Power: 11
ansab_sindhu is on a distinguished road
Hi,

Your tutorial is quite helpful, How can we calculate phase angle in python?



Quote:
Originally Posted by mAlletto View Post
There is tutorial available which computes 2d vortex induced vibration (viv) of a circular cylinder in laminar flow:


https://wiki.openfoam.com/Vortex_ind...ichael_Alletto


This may be helpful
ansab_sindhu is offline   Reply With Quote

Old   February 13, 2022, 09:16
Default
  #8
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
Which phase angle do you mean
mAlletto is offline   Reply With Quote

Old   February 13, 2022, 14:54
Default
  #9
Member
 
zink
Join Date: Oct 2015
Posts: 30
Rep Power: 11
ansab_sindhu is on a distinguished road
phase angle between the lift force vector and cylinder motion displacement.
(for 2Dof Motion). I heard one can calculate using Hilbert transform but I still need to learn.
Quote:
Originally Posted by mAlletto View Post
Which phase angle do you mean
ansab_sindhu is offline   Reply With Quote

Old   February 14, 2022, 16:31
Default
  #10
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
Did you try to use the dot product to calculate the phase angle
mAlletto is offline   Reply With Quote

Reply

Tags
dynamicmesh error


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
Simulating vortex induced vibrations (VIV) through UDF diggee FLUENT 0 May 30, 2018 08:25
External management of solid motion (using dynamicmesh) maxou1993 Main CFD Forum 0 July 28, 2015 12:37
Which transition model for VIV on risers? jordan.c Main CFD Forum 0 May 5, 2015 04:34
Vortex Induced Vibration (VIV) modelling Kwong FLUENT 1 December 1, 2009 14:08
VIV Sham FLUENT 0 December 14, 2006 23:13


All times are GMT -4. The time now is 13:50.