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

Force Oscillations in sloshing simulation with dynamicMeshDict (6DoF)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2024, 09:47
Question Force Oscillations in sloshing simulation with dynamicMeshDict (6DoF)
  #1
thr
New Member
 
thr
Join Date: Dec 2023
Posts: 3
Rep Power: 3
thr is on a distinguished road
Hello,

im try to simulate sloshing in a closed tank.

I use OF11 and based on the tutorial sloshingTank6DoF i built up my own simulation. In the end i want the forces acting on the tank due to the liquid sloshing. When i read the data from the postProcessing folder i get really confusing Oscillations. I have no clue why this is happening. I have tried several different options in fvSchemes and fvSolution.

controlDict:
application foamRun;

solver incompressibleVoF;

startFrom latestTime;

startTime 0;

stopAt endTime;

endTime 1;

deltaT 0.0001;

writeControl adjustableRunTime;

writeInterval 0.1;

purgeWrite 0;

writeFormat binary;

writePrecision 9;

writeCompression off;

timeFormat general;

timePrecision 9;

runTimeModifiable yes;

adjustTimeStep yes;

maxCo 0.4;
maxAlphaCo 0.4;

maxDeltaT 0.01;

functions
{

forces
{
type forces;
libs ("libforces.so");
patches ("sloshingCylinder");
log on;
writeControl adjustableRunTime;
writeInterval 0.001;
rhoInf 1000;
rho rhoInf;
CofR (0.4 -0.4 0.1); // Point for calculation of moments


}
}

fvSolution

solvers
{
alpha.water
{
nAlphaCorr 1;
nAlphaSubCycles 3;
}

"pcorr.*"
{
solver PCG;
preconditioner
{
preconditioner GAMG;
tolerance 1e-05;
relTol 0;
smoother DICGaussSeidel;
cacheAgglomeration no;
}

tolerance 1e-05;
relTol 0;
maxIter 100;
}

p_rgh
{
solver GAMG;
tolerance 1e-08;
relTol 0.01;
smoother DIC;
}

p_rghFinal
{
solver PCG;
preconditioner
{
preconditioner GAMG;
tolerance 2e-09;
relTol 0;
nVcycles 2;
smoother DICGaussSeidel;
nPreSweeps 2;
}

tolerance 2e-09;
relTol 0;
maxIter 20;
}

"(U|k|epsilon|omega).*"
{
solver smoothSolver;
smoother GaussSeidel;
tolerance 1e-06;
relTol 0;
nSweeps 1;
}
}

PIMPLE
{
momentumPredictor no;
nCorrectors 5;
nNonOrthogonalCorrectors 1;
correctPhi no;

pRefPoint (0.4 -0.4 0.1);
pRefValue 1e5;
}

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

dynamicMeshDict

mover
{
type motionSolver;

libs ("libfvMeshMovers.so" "libfvMotionSolvers.so");

motionSolver solidBody;

select all;

solidBodyMotionFunction sixDoFMotion;

CofG (0.4 -0.4 0.1);

translationRotation table;
//interpolationScheme spline;
file "$FOAM_CASE/constant/6DoF.dat";

}

6DoF.dat is a table with a frequency of 800hz. simple acceleration in x direction with 9.81m/s^2.

I have attached a plot of the force. Its the same for Fx,Fy,Fz. Every 10nth data point drops. The sloshing in Paraview look good. I think this could be a problem with the dynamictMeshDict, the forcesFunction or the adjustableTimeStep.

Best,

T
Attached Images
File Type: jpg Unbenannt.jpg (47.4 KB, 8 views)
thr is offline   Reply With Quote

Old   October 2, 2024, 10:24
Default
  #2
New Member
 
GaspA
Join Date: Jan 2023
Location: Switzerland - Valais
Posts: 9
Rep Power: 3
GaspA is on a distinguished road
Hello,


I Have the same behaviour.
I think this comes from the interpolationScheme (dynamicMEshDict) for points in 6DoF.dat. But i don't understand where exactly.


Do have somebody an idea ?



Thanks.
GaspA is offline   Reply With Quote

Old   October 4, 2024, 04:11
Default Force Oscillation
  #3
thr
New Member
 
thr
Join Date: Dec 2023
Posts: 3
Rep Power: 3
thr is on a distinguished road
Hello,

I solved this Problem. I think it is not possible to build a simulation with 6DoF.dat and ready out correct forces/moments. The only way i got good results was by giving direct accelerations to openfoam. I calculated accelerations from the given positions and used these as Input for openfoam. I really tried everything to use Position as input the same way you can see in the tutorials. Everytime you give a new datapoint(Position) you will get an Oscillation in your forces. Try using accelerations as an Input for your movement! Sorry for my late reply.

Best,

T
thr is offline   Reply With Quote

Old   October 7, 2024, 12:12
Default
  #4
New Member
 
GaspA
Join Date: Jan 2023
Location: Switzerland - Valais
Posts: 9
Rep Power: 3
GaspA is on a distinguished road
Hello,
Thank you for your answer.
I come to the same conclusion. Which is relatively regrettable I find...
I manage to get good results with the acceleration method. However I cannot read a file containing the acceleration. Reading a table in the dictionary works correctly but I do not know the syntax to read a file. I created a post in this sense Read table to fvOptions or fvModels

Maybe you have a solution.

Thank you

Best regards


GaspA
GaspA 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
Drag Force Ratio for Flat Plate Rob Wilk Main CFD Forum 40 May 10, 2020 05:47
Z-dimension for 2D 6DoF simulation Fieschi OpenFOAM Pre-Processing 1 March 30, 2020 00:01
Incorrect lift force in simpleFoam airfoil simulation olov OpenFOAM Running, Solving & CFD 2 May 18, 2019 07:51
Massless 6DOF Simulation Mojtaba.a OpenFOAM Running, Solving & CFD 1 February 14, 2016 08:54
VOF Sloshing - beating pattern in force output? Brian FLUENT 0 May 18, 2006 11:59


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