CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

"Frozen" dynamic meshing

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 23, 2017, 07:57
Default "Frozen" dynamic meshing
  #1
New Member
 
M. Amirul
Join Date: Mar 2017
Location: Malaysia
Posts: 18
Rep Power: 9
maasyraf3 is on a distinguished road
GREETINGS to all Foamers, <br />
<br />
My name is Amy which currently are doing my master research project by dealing with oscillating cylinders. I have went through each replies in this thread and its related link provided, but still I think I dont have the answer.<br />
<br />
I really need your series of advices, in regards with my oscillating circular cylinder in dynamic meshing. I use pimpleDyMFoam, OF 4.0 to solve my case<br />
<br />
I have provide all the necessary parameters that similar with my experimental works ( actual setup) but after almost 2 weeks, still the simulation in openFoam not favourable to my experiment result. (I attached the video for actual experiment in my university lab) <br />
<br />
The GIF file : https://www.cfd-online.com/Forums/at...1&d=1492856466<br />
<br />
Has uploaded in youtube link: https://youtu.be/V627hD_ktVA<br />
<br />
<br />
I did modify and tried various Reynold Number value in order to see the effect to the flow, but still the same result. It seems that the flow "not so smooth" as per actual.<br />
<br />
My setup which is mass-spring-damping system are as follows:<br />
<br />
1) Diameter of the cylinder is 50 mm ( which equal to 0.05 meter) iwith the total length is 0.65meter. My case only for 1-DOF.<br />
<br />
2) The circular cylinder should oscillate (moving) in y-direction only. As the flow passing the cylinder, the lift force from the flow should naturally force the cylinder up and down (viv phenomena) at certain amplitude.<br />
<br />
3) System stiffness is 140 N/m. And so I set two spring (70 for each spring) in the openFoam dynamicMeshDict. The sketch by hand as below:<br />
<br />
<br />
<br />
<br />
<br />
<br />
Basically I use <br />
Quote:
- dynamicFvMesh :dynamicMotionSolverFvMesh<br />
- motionSolverLibs "libsixDoFRigidBodyMotion.so")<br />
- solver: sixDoFRigidBodyMotion
<br />
<br />
4) The damping of system is 0.08. The mass of the cylinder is 1.32 kg. Density of the water I use 1000 kg/m3. <br />
Kinematic viscosity (v) - 1e-06. And so these values I set in transportProperties file<br />
<br />
Quote:
transportModel Newtonian;<br />
<br />
nu nu [ 0 2 -1 0 0 0 0 ] 1e-06;<br />
rho rho [1 -3 0 0 0 0 0] 1000;
<br />
<br />
<br />
5) Speed of the water is 0.3 m/s. <br />
So, here in 0 file, I set the U 0.3 m/s at inlet and internalField as well. <i>(I dont know it is the right way or not).</i> <br />
<br />
By using 0.3 m/s, the Reynold number is 15 000.<br />
<i>I dont know, this value of Re still valid for my case file since I off the turbulenceProperties. Need helps here.</i><br />
<br />
6) In dynamicMeshDict, we should specify the below:<br />
<br />
- inner distance and outer distance. I'd like to ask the effect to the oscillation of the cylinder<br />
<br />
Quote:
patches (cylinder);<br />
innerDistance 0.3;<br />
outerDistance 2;
<br />
<br />
- the rho of the rhoInf ? What the exact value I should put? the rho of the cylinder or the fluid?<br />
<br />
Quote:
rho rhoInf;<br />
rhoInf 1;
<br />
<br />
<br />
7) The issue is - why after simulate is seems so "frozen" and did not work well as per actual experiment? How do I fix this.?<br />
<br />
Here I attach all the '0' , ' Constant' and 'System' of my setup. And really appreciate helps and assistance from this forum thread. I dont know, it can be my flow setup is wrong, or my dynamicMeshDict or my transportProperties. or else?<br />
<br />
I hope I can resolve this...really. Thanks in advance all !!<br />
<br />
Best Regards - <br />
Amy<br />
amirulasyraf.utm@gmail.com<br />
<br />
*********************************<br />
<br />
<br />
My all case Files as below link and quote<br />
<br />
0_constant_system_cylinderVIV.zip<br />
<br />
<br />
0 files<br />
<br />
U :<br />
<br />
Quote:
FoamFile<br />
{<br />
version 2.0;<br />
format ascii;<br />
class volVectorField;<br />
object U;<br />
}<br />
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //<br />
<br />
dimensions [0 1 -1 0 0 0 0];<br />
<br />
internalField uniform (0.01 0 0);<br />
<br />
boundaryField<br />
{<br />
topAndBottom<br />
{<br />
type noSlip;<br />
}<br />
<br />
inlet<br />
{<br />
type fixedValue;<br />
valueuniform (0.01 0 0);<br />
}<br />
<br />
outlet<br />
{<br />
type zeroGradient;<br />
}<br />
<br />
frontAndBack<br />
{<br />
type empty;<br />
}<br />
<br />
<br />
cylinder<br />
{<br />
type movingWallVelocity;<br />
value uniform (0 0 0);<br />
}<br />
<br />
}<br />
<br />
// ************************************************** *********************** //
<br />
<br />
<br />
<br />
Pressure ,p<br />
Quote:
{<br />
version 2.0;<br />
format ascii;<br />
class volScalarField;<br />
object p;<br />
}<br />
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //<br />
<br />
dimensions [0 2 -2 0 0 0 0];<br />
<br />
internalField uniform 0;<br />
<br />
boundaryField<br />
{<br />
<br />
topAndBottom<br />
{<br />
type zeroGradient;<br />
} <br />
<br />
outlet<br />
{<br />
type zeroGradient;<br />
}<br />
<br />
inlet<br />
{<br />
type zeroGradient;<br />
}<br />
<br />
frontAndBack<br />
{<br />
type empty;<br />
}<br />
<br />
cylinder<br />
{<br />
type zeroGradient;<br />
}<br />
<br />
}<br />
<br />
// ************************************************** *********************** //
<br />
<br />
<br />
pointDisplacement<br />
<br />
Quote:
FoamFile<br />
{<br />
version 2.0;<br />
format ascii;<br />
class pointVectorField;<br />
location "0.01";<br />
object pointDisplacement;<br />
}<br />
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //<br />
<br />
dimensions [0 1 0 0 0 0 0];<br />
<br />
internalField uniform (0 0 0);<br />
<br />
boundaryField<br />
{<br />
topAndBottom<br />
{<br />
type uniformFixedValue;<br />
uniformValue (0 0 0);<br />
}<br />
<br />
inlet<br />
{<br />
type uniformFixedValue;<br />
uniformValue (0 0 0);<br />
}<br />
<br />
outlet<br />
{<br />
type uniformFixedValue;<br />
uniformValue (0 0 0);<br />
}<br />
<br />
cylinder<br />
{<br />
type calculated;<br />
value uniform (0 0 0);<br />
}<br />
<br />
frontAndBack<br />
{<br />
type empty;<br />
}<br />
}
<br />
<br />
<br />
Next, is the dynamicMeshDict file<br />
<br />
Quote:
FoamFile<br />
{<br />
version 2.0;<br />
format ascii;<br />
class dictionary;<br />
object dynamicMeshDict;<br />
}<br />
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //<br />
<br />
dynamicFvMesh dynamicMotionSolverFvMesh;<br />
<br />
motionSolverLibs ("libsixDoFRigidBodyMotion.so");<br />
<br />
solver sixDoFRigidBodyMotion;<br />
<br />
diffusivity linear inverseDistance 1 (cylinder);<br />
<br />
sixDoFRigidBodyMotionCoeffs<br />
{<br />
patches (cylinder);<br />
innerDistance 0.3;<br />
outerDistance 2;<br />
<br />
mass 1.32;<br />
centreOfMass (0 0 0);<br />
momentOfInertia (0.1 0.1 0.1);<br />
orientation<br />
(<br />
1 0 0<br />
0 1 0<br />
0 0 1<br />
);<br />
angularMomentum (0 0 0);<br />
g (0 -9.81 0);<br />
rho rhoInf;<br />
rhoInf 1;<br />
report on;<br />
<br />
solver<br />
{<br />
type symplectic;<br />
}<br />
<br />
constraints<br />
{<br />
yLine<br />
{<br />
sixDoFRigidBodyMotionConstraint line;<br />
centreOfRotation (0 0 0);<br />
direction (0 1 0);<br />
}<br />
<br />
zAxis<br />
{<br />
sixDoFRigidBodyMotionConstraint axis;<br />
axis (0 0 1);<br />
}<br />
}<br />
<br />
restraints<br />
{<br />
verticalSpring1<br />
{<br />
sixDoFRigidBodyMotionRestraint linearSpring;<br />
<br />
anchor (0 0.20 0.0025);<br />
refAttachmentPt (0 0.05 0.0025);<br />
stiffness 70;<br />
damping 0.08;<br />
restLength 0.05;<br />
}<br />
<br />
verticalSpring2<br />
{<br />
sixDoFRigidBodyMotionRestraint linearSpring;<br />
<br />
anchor (0 -0.20 0.0025);<br />
refAttachmentPt (0 -0.05 0.0025);<br />
stiffness 70;<br />
damping 0.08;<br />
restLength 0.05;<br />
}<br />
<br />
<br />
}<br />
}<br />
<br />
<br />
// ************************************************** *********************** //
<br />
<br />
<br />
next - transportProperties<br />
<br />
Quote:
FoamFile<br />
{<br />
version 2.0;<br />
format ascii;<br />
class dictionary;<br />
location "constant";<br />
object transportProperties;<br />
}<br />
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //<br />
<br />
transportModel Newtonian;<br />
<br />
nu nu [ 0 2 -1 0 0 0 0 ] 1e-06;<br />
rho rho [1 -3 0 0 0 0 0] 1000; <br />
<br />
<br />
// ************************************************** ***********************
<br />
<br />
<br />
turbulenceProperties<br />
<br />
<br />
Quote:
FoamFile<br />
{<br />
version 2.0;<br />
format ascii;<br />
class dictionary;<br />
location "constant";<br />
object turbulenceProperties;<br />
}<br />
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //<br />
<br />
simulationType laminar;<br />
<br />
<br />
// ************************************************** *********************** //
<br />
<br />
<br />
<br />
RAS properties<br />
<br />
Quote:
FoamFile<br />
{<br />
version 2.0;<br />
format ascii;<br />
class dictionary;<br />
location "constant";<br />
object RASProperties;<br />
}<br />
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //<br />
<br />
RASModel laminar;<br />
<br />
<br />
turbulence off;<br />
<br />
printCoeffs on;<br />
<br />
<br />
// ************************************************** *********************** //
<br />
<br />
<br />
and now - the system files<br />
<br />
the controlDict:<br />
<br />
Quote:
FoamFile<br />
{<br />
version 2.0;<br />
format ascii;<br />
class dictionary;<br />
location "system";<br />
object controlDict;<br />
}<br />
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //<br />
<br />
application pimpleDyMFoam;<br />
<br />
startFrom latestTime;<br />
<br />
startTime 0;<br />
<br />
stopAt endTime;<br />
<br />
endTime 60;<br />
<br />
deltaT 5e-06;<br />
<br />
writeControl adjustableRunTime;<br />
<br />
writeInterval 0.1;<br />
<br />
purgeWrite 0;<br />
<br />
writeFormat binary;<br />
<br />
writePrecision 6;<br />
<br />
writeCompression off;<br />
<br />
timeFormat general;<br />
<br />
timePrecision 6;<br />
<br />
runTimeModifiable true;<br />
<br />
adjustTimeStep yes;<br />
<br />
maxCo 0.5;<br />
<br />
functions<br />
{<br />
#include "cuttingPlane"<br />
}<br />
<br />
// ************************************************** *********************** //
<br />
<br />
<br />
the decomposeParDict:<br />
<br />
Quote:
FoamFile<br />
{<br />
version 2.0;<br />
format ascii;<br />
class dictionary;<br />
object decomposeParDict;<br />
}<br />
<br />
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //<br />
<br />
numberOfSubdomains 6;<br />
<br />
method scotch;<br />
// method ptscotch;<br />
<br />
simpleCoeffs<br />
{<br />
n (4 1 1);<br />
delta 0.001;<br />
}<br />
<br />
hierarchicalCoeffs<br />
{<br />
n (3 2 1);<br />
delta 0.001;<br />
order xyz;<br />
}<br />
<br />
manualCoeffs<br />
{<br />
dataFile "cellDecomposition";<br />
}<br />
<br />
<br />
// ************************************************** *********************** //
<br />
<br />
<br />
the fvschemes:<br />
<br />
Quote:
FoamFile<br />
{<br />
version 2.0;<br />
format ascii;<br />
class dictionary;<br />
location "system";<br />
object fvSchemes;<br />
}<br />
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //<br />
<br />
ddtSchemes<br />
{<br />
default Euler;<br />
}<br />
<br />
gradSchemes<br />
{<br />
default Gauss linear;<br />
}<br />
<br />
divSchemes<br />
{<br />
default none;<br />
div(phi,U) Gauss linear;<br />
div((nuEff*dev(T(grad(U))))) Gauss linear;<br />
div((nuEff*dev2(T(grad(U))))) Gauss linear;<br />
}<br />
<br />
laplacianSchemes<br />
{<br />
default Gauss linear corrected;<br />
laplacian(diffusivity,cellMotionU) Gauss linear uncorrected;<br />
}<br />
<br />
interpolationSchemes<br />
{<br />
default linear;<br />
}<br />
<br />
snGradSchemes<br />
{<br />
default corrected;<br />
}<br />
<br />
fluxRequired<br />
{<br />
default no;<br />
pcorr ;<br />
p ;<br />
}<br />
<br />
<br />
// ************************************************** *********************** //
<br />
<br />
<br />
<br />
the fvsolution:<br />
<br />
Quote:
FoamFile<br />
{<br />
version 2.0;<br />
format ascii;<br />
class dictionary;<br />
location "system";<br />
object fvSolution;<br />
}<br />
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //<br />
<br />
solvers<br />
{<br />
pcorr<br />
{<br />
solver GAMG;<br />
tolerance 0.02;<br />
relTol 0;<br />
smoother GaussSeidel;<br />
nPreSweeps 0;<br />
nPostSweeps 2;<br />
cacheAgglomeration no;<br />
nCellsInCoarsestLevel 10;<br />
agglomerator faceAreaPair;<br />
mergeLevels 1;<br />
}<br />
<br />
p<br />
{<br />
solver GAMG;<br />
tolerance 0;<br />
relTol 0.01;<br />
smoother GaussSeidel;<br />
nPreSweeps 0;<br />
nPostSweeps 2;<br />
cacheAgglomeration no;<br />
nCellsInCoarsestLevel 10;<br />
agglomerator faceAreaPair;<br />
mergeLevels 1;<br />
}<br />
<br />
pFinal<br />
{<br />
$p;<br />
tolerance 1e-06;<br />
relTol 0;<br />
}<br />
<br />
U<br />
{<br />
solver smoothSolver;<br />
smoother symGaussSeidel;<br />
tolerance 1e-05;<br />
relTol 0.1;<br />
}<br />
<br />
UFinal<br />
{<br />
$U;<br />
tolerance 1e-05;<br />
relTol 0;<br />
}<br />
<br />
cellMotionUx<br />
{<br />
solver PCG;<br />
preconditioner DIC;<br />
tolerance 1e-08;<br />
relTol 0;<br />
}<br />
cellMotionUxFinal<br />
{<br />
solver PCG;<br />
preconditioner DIC;<br />
tolerance 1e-08;<br />
relTol 0;<br />
}<br />
<br />
"cellDisplacement.*"<br />
{<br />
solver GAMG;<br />
tolerance 1e-5;<br />
relTol 0;<br />
smoother GaussSeidel;<br />
cacheAgglomeration true;<br />
nCellsInCoarsestLevel 10;<br />
agglomerator faceAreaPair;<br />
mergeLevels 1;<br />
}<br />
<br />
}<br />
<br />
PIMPLE<br />
{<br />
correctPhi yes;<br />
nOuterCorrectors 2;<br />
nCorrectors 1;<br />
nNonOrthogonalCorrectors 0;<br />
pRefCell 1001; <br />
pRefValue 0; <br />
}<br />
<br />
relaxationFactors<br />
{<br />
fields<br />
{<br />
}<br />
equations<br />
{<br />
"U.*" 1;<br />
}<br />
}<br />
<br />
// ************************************************** *********************** //
Sent from my M631Y using CFD Online Forum mobile app
__________________
Best Regards,
maasyraf3
maasyraf3 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
CFD simulation of gas cicrcuit breaker in fluent with dynamic meshing. Mahesh7238 FLUENT 1 April 5, 2021 00:21
Dynamic Meshing of Simple 2D Geometry harman79 FLUENT 2 January 17, 2018 06:07
UDF for dynamic meshing? prasaddeole FLUENT 2 October 6, 2014 11:55
negative cell volume during dynamic meshing Tamjid FLUENT 1 September 5, 2011 02:33
[GAMBIT] Dynamic Meshing of a combustion chamber donarundas ANSYS Meshing & Geometry 1 December 2, 2009 07:13


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