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

oscillating cylinder dynamic mesh

Register Blogs Community New Posts Updated Threads Search

Like Tree29Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 18, 2015, 21:17
Default
  #101
Pab
New Member
 
Pablo Murillo
Join Date: Apr 2015
Location: Cádiz, Spain
Posts: 3
Rep Power: 11
Pab is on a distinguished road
Hi all of you!


First of all, many thanks for your help. This treath is incredible. I am studing this problem too and finally I have been able to lauched it correctly on OpenFOAM 2.3.x thanks to this treath.

jerikanti, you can find attached it. I hope you find it interesting


Best Regards,


Pablo



Case: https://goo.gl/ygHRKD
PD: Mesh is not the suitable one but it is enough
xerxes92005 likes this.
Pab is offline   Reply With Quote

Old   May 23, 2015, 07:38
Default
  #102
New Member
 
Amin S
Join Date: Mar 2014
Posts: 5
Rep Power: 12
xerxes92005 is on a distinguished road
Dear All,

I've started working on VIV of a cylinder lately.thanks to Maimuna and Bruno,I could perform two cases using OF2.3.0:
first case a forced oscillation with a vertical displacement excitation of cylinder in Re=3900.
second a two degree of freedom vibration of cylinder subjected to steady current at Re=200,based on scenario1 with a minor modification in blockMeshDict file and using coefficients like K(stiffness),c(damping),.. from experimental data.
questions:

1.what constants should be used for springs&dampers? should we derive it from a beam model analogy of a cylinder span under fluid forces?

2.why in scenario1,4 springs&dampers used for 2 degree of freedom motion?(maybe springs are considered to act in one direction,i.e. only positive displacement) we could restrain the cylinder with 2 set of spring&damper in each direction..

3.has anyone performed VIV analysis for a coupled system of fluid-structure,including FSI in OpenFoam? like implementation of icoFsiElasticNonLinULSolidFoam solver in FoamExtend..for example HronTurekFsi tutorial case..
Attached Images
File Type: png FIV-paidosis.png (22.8 KB, 91 views)
Attached Files
File Type: c dynamicMeshDict.c (3.8 KB, 77 views)
xerxes92005 is offline   Reply With Quote

Old   June 15, 2015, 05:16
Default
  #103
Member
 
Thaw Tar's Avatar
 
Thaw Tar
Join Date: Apr 2013
Location: Yangon, Myanmar
Posts: 35
Rep Power: 13
Thaw Tar is on a distinguished road
Dear Amin S,

I read your dynamicDict file but still have not run yet.

Could you run that case? How is the motion amplitude of the cylinder?

I think your mass ratio is about 1/100 which is extremely small and will cause very large amplitudes. Can your mesh handle this amplitude? As for me, I faced a lot of simulation blow ups because the mesh distorts too much because of very large cylinder amplitudes and the solution diverged.

By the way, I could run some cases with 2DoF movement using only a spring with length 0. These just worked fine.


Regards
Thaw Tar

P.S. In my research, I calculated spring constants using beam analogy and I think these are fine. (Actually, I could not find a better approach)
Thaw Tar is offline   Reply With Quote

Old   August 9, 2015, 11:09
Default
  #104
Pab
New Member
 
Pablo Murillo
Join Date: Apr 2015
Location: Cádiz, Spain
Posts: 3
Rep Power: 11
Pab is on a distinguished road
Hi all,


Anybody knows where can I find simulation or experimental data to validate a case of 2D spring mounted laminar cylinder with 1DOF, and 2DOF too? For example, Cl(t) and Cd(t) for low Re, around 200.

Thanks you in advance. Best regards,


Pablo
Pab is offline   Reply With Quote

Old   September 17, 2015, 10:15
Default restraints problems
  #105
New Member
 
Agnese Paci
Join Date: May 2015
Location: Bologna, Italy
Posts: 14
Rep Power: 10
agnip is on a distinguished road
Dear all,
I'm trying to simulate a floating vertical cylinder with mooring systems.
I thought to use verticalSprings implented in dynamicMeshDict/restraints,
but it does not work. I put anchor points on the bottom boundary and refAttachmentsPt on the bottom of my cylinder. Could it be correct?
Can anyone help me using these restraints?

thank you very much

Agnese
agnip is offline   Reply With Quote

Old   October 12, 2015, 17:01
Default
  #106
Member
 
Davi Barreira
Join Date: Apr 2014
Location: Fortaleza
Posts: 76
Rep Power: 12
davibarreira is on a distinguished road
Agnese, post your dynamicMeshDict, so we can help you out.
davibarreira is offline   Reply With Quote

Old   October 13, 2015, 03:53
Default
  #107
New Member
 
Agnese Paci
Join Date: May 2015
Location: Bologna, Italy
Posts: 14
Rep Power: 10
agnip is on a distinguished road
Hi david,
you are very very kind!
Fortunately, at the end, I could! My model runs !!!
Thank you very much anyway!

have a good day

Agnese
davibarreira likes this.
agnip is offline   Reply With Quote

Old   October 13, 2015, 21:05
Default
  #108
Member
 
Davi Barreira
Join Date: Apr 2014
Location: Fortaleza
Posts: 76
Rep Power: 12
davibarreira is on a distinguished road
Edited: No problem. I had some questions too, but I read the code and now I think I understood how the linearSpring is implemented.
agnip likes this.

Last edited by davibarreira; October 14, 2015 at 20:30.
davibarreira is offline   Reply With Quote

Old   December 1, 2015, 02:33
Default
  #109
New Member
 
Jason
Join Date: Dec 2015
Posts: 12
Rep Power: 10
llib11ik is on a distinguished road
Quote:
Originally Posted by Maimouna View Post
Dear Mojtaba,

exactly, in the natural vibration don't need to specify a motion for the cylinder. Let the cylinder (within certain constraints) move accordingly to how the forces caused by the fluid act on it.

The difference between forced and natural vibrations is essentially the boundary condition on the cylinder in pointDisplacement file in 0 directory.

I hope that help.

Maimouna
Dear Maimouna,

I'm a beginner and also trying to simulate the vortex induced vibration. Could you share your case files with us as I found you have done a lot of work on it and it would be useful for a lot of learners like myself?

Thank you!

Jason

Last edited by llib11ik; December 1, 2015 at 03:56.
llib11ik is offline   Reply With Quote

Old   December 1, 2015, 03:47
Default
  #110
New Member
 
Jason
Join Date: Dec 2015
Posts: 12
Rep Power: 10
llib11ik is on a distinguished road
Quote:
Originally Posted by Maimouna View Post
This is the steps:
1. Extract tar xf oscillatingCylinder.tar.gz
2. Copy and paste in pimpleDyMFoam solver in incomressible tutorial
3. In terminal window alias 'of230'
4. Go to the case path.
5. ./Allclean
6. ./Allprepare
7. pimpleDyMFoam
8. paraFoam

Hope this help.

Regards
hi Maimouna,

Thanks for your sharing! I download your file and follow your instructions, but I still can not run it (under OF240). Can you please help? Thank you very much!

Jason

Errors are:

Code:
ceeyang@ceeyang-HP-EliteDesk-800-G1-SFF:~/OpenFOAM/ceeyang-2.4.0/run/tutorials/incompressible/pimpleDyMFoam/oscillatingCylinder$ ./Allclean
Cleaning /home/ceeyang/OpenFOAM/ceeyang-2.4.0/run/tutorials/incompressible/pimpleDyMFoam/oscillatingCylinder case
ceeyang@ceeyang-HP-EliteDesk-800-G1-SFF:~/OpenFOAM/ceeyang-2.4.0/run/tutorials/incompressible/pimpleDyMFoam/oscillatingCylinder$ ./Allprepare 
./Allprepare: line 1: #!/bin/sh: No such file or directory
./Allprepare: line 3: gmsh: command not found
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.4.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.4.0-f0842aea0e77
Exec   : gmshToFoam channel-with-cylinder.msh
Date   : Dec 01 2015
Time   : 16:11:20
Host   : "ceeyang-HP-EliteDesk-800-G1-SFF"
PID    : 9491
Case   : /home/ceeyang/OpenFOAM/ceeyang-2.4.0/run/tutorials/incompressible/pimpleDyMFoam/oscillatingCylinder
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time


#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigSegv::sigHandler(int) at ??:?
#2  ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3  Foam::PtrList<Foam::polyPatch>::operator[](int) const at ??:?
#4  ? at ??:?
#5  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#6  ? at ??:?
./Allprepare: line 4:  9491 Segmentation fault      (core dumped) gmshToFoam channel-with-cylinder.msh
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.4.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.4.0-f0842aea0e77
Exec   : changeDictionary
Date   : Dec 01 2015
Time   : 16:11:21
Host   : "ceeyang-HP-EliteDesk-800-G1-SFF"
PID    : 9517
Case   : /home/ceeyang/OpenFOAM/ceeyang-2.4.0/run/tutorials/incompressible/pimpleDyMFoam/oscillatingCylinder
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0



--> FOAM FATAL ERROR: 
Cannot find file "points" in directory "polyMesh" in times 0 down to constant

    From function Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&)
    in file db/Time/findInstance.C at line 203.

FOAM exiting
llib11ik is offline   Reply With Quote

Old   December 1, 2015, 05:24
Default
  #111
Senior Member
 
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 13
Maimouna is on a distinguished road
Code:
hi Maimouna,

Thanks for your sharing! I download your file and follow your  instructions, but I still can not run it (under OF240). Can you please  help? Thank you very much!

Jason
Hi Jason,

could you please post your case to have a look, or you could contact me via
HTML Code:
may78may@hotmail.com
Maimouna
Maimouna is offline   Reply With Quote

Old   December 1, 2015, 06:31
Default
  #112
New Member
 
Jason
Join Date: Dec 2015
Posts: 12
Rep Power: 10
llib11ik is on a distinguished road
Dear Maimouna,

Thanks for the kind reply! Please see my case file as attached.

My plan for the work is as below, which is quite similar as yours:
1) model the flow around a static cylinder (done, as attached);
2) model the flow around a forced vibrating cylinder (try to modify my current case by learning from your case);
3) model the flow around a freely vibrating cylinder (final task).
Currently I'm still at the stage 2) and I'm new to OF, so I have a lot to learn.

Could you please give me some advice? At the same time, I'm also studying the cases you uploaded and trying to figure out how to make the cylinder vibrate.

Thank you very much!

Jason
Attached Files
File Type: gz stationaryCylinder.tar.gz (3.8 KB, 22 views)
llib11ik is offline   Reply With Quote

Old   December 1, 2015, 08:10
Default
  #113
Senior Member
 
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 13
Maimouna is on a distinguished road
Dear Jason,

could you please provide me all information about your case
laminar or turbulence?
Reynolds number?
case domain and boundaries?
OpenFOAM version?
operating system and its version?
all other information to be able to give you feedback.

Regards

Maimouna
Maimouna is offline   Reply With Quote

Old   December 2, 2015, 08:07
Default
  #114
New Member
 
Jason
Join Date: Dec 2015
Posts: 12
Rep Power: 10
llib11ik is on a distinguished road
Dear Maimouna,

After I installed gmsh, I can successfully run your case "oscillatingCylinder" now. Thanks!

I also made some modifications to my previous case to make the cylinder vibrate now (forced vibration).

The information of my case:
Turbulent
Re=9500
2D channel with velocity inlet, pressure outlet, nonslip walls and a moving cylinder
OpenFOAM 2.4.0
UBUNTU 14.04.3 LTS
My case files are also attached for more detailed info.

Next I'd like to make the cylinder vibrate freely (vortex induced vibration). Could you please kindly give me some advice on how to modify my current case to model the VIV?

Thank you very much!

Jason

Quote:
Originally Posted by Maimouna View Post
Dear Jason,

could you please provide me all information about your case
laminar or turbulence?
Reynolds number?
case domain and boundaries?
OpenFOAM version?
operating system and its version?
all other information to be able to give you feedback.

Regards

Maimouna
Attached Files
File Type: gz vibratingCylinder.tar.gz (4.8 KB, 46 views)
llib11ik is offline   Reply With Quote

Old   December 3, 2015, 00:18
Default
  #115
New Member
 
Jason
Join Date: Dec 2015
Posts: 12
Rep Power: 10
llib11ik is on a distinguished road
Dear Thaw Tar,

I followed Maimouna's instructions but only got many XY files in the "logs" directory.

Could you kindly let me know how you create the single center of mass file? Thank you very much!

Jason

Quote:
Originally Posted by Thaw Tar View Post
Dear Maimouna,

Thank you. I could extract centre of Mass data from log file.

By adding some awk commands, I could create a single centre of mass file for each cylinder.

However, I guess it might be much more tricky if the cylinder count gets higher.

Regards,
Thaw Tar
llib11ik is offline   Reply With Quote

Old   December 3, 2015, 05:01
Default
  #116
Senior Member
 
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 13
Maimouna is on a distinguished road
Quote:
Dear Maimouna,

After I installed gmsh, I can successfully run your case "oscillatingCylinder" now. Thanks!

I also made some modifications to my previous case to make the cylinder vibrate now (forced vibration).

The information of my case:
Turbulent
Re=9500
2D channel with velocity inlet, pressure outlet, nonslip walls and a moving cylinder
OpenFOAM 2.4.0
UBUNTU 14.04.3 LTS
My case files are also attached for more detailed info.

Next I'd like to make the cylinder vibrate freely (vortex induced vibration). Could you please kindly give me some advice on how to modify my current case to model the VIV?

Thank you very much!

Jason
Dear Jason,

I'm bit busy theses days, I'll back to your cases as soon as I can.

All the best

Maimouna
Maimouna is offline   Reply With Quote

Old   December 6, 2015, 23:03
Default
  #117
New Member
 
Jason
Join Date: Dec 2015
Posts: 12
Rep Power: 10
llib11ik is on a distinguished road
Hi Behzad

Could you tell me how you fixed the missing .So library problem? Because I'm facing the same problem and I'm using OpenFOAM 2.4.0.

Thank you very much!

Best regards
Jason


Quote:
Originally Posted by arionfard View Post
No, the problem was the missing. So library! Ifixed it
llib11ik is offline   Reply With Quote

Old   December 9, 2015, 11:20
Default
  #118
Senior Member
 
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 13
Maimouna is on a distinguished road
Quote:
Originally Posted by Maimouna View Post
Dear Jason,

I'm bit busy theses days, I'll back to your cases as soon as I can.

All the best

Maimouna
Dear Jason,

I just got time to test your case (vibratingCylinder). It is working fine in my machine. Yah, tell me please, what's your doubt and questions again.
Maimouna is offline   Reply With Quote

Old   December 11, 2015, 03:32
Default
  #119
New Member
 
Jason
Join Date: Dec 2015
Posts: 12
Rep Power: 10
llib11ik is on a distinguished road
Dear Maimouna,

First of all, thank you very much for your kind help.
With your help and learning from the posted cases, currently I can run a case with free vibrating cylinder.

However, still a few questions:
1. Follow your method below, I can only get the x of the mass center. Do you know how to get all x y z?
2. For the attached case, I can find the cylinder is moving, but velocity and displacement are very small (the order is e-6 to e-9). I tried to change the mass, stiffness and damping but none of them works. Can you give me suggestions to make the cylinder move more obviously?

Thank you!

Best regards
Jason

Quote:
Originally Posted by Maimouna View Post
Hi Thaw Tar,

if you would like to grep centre of mass, do the following
1. run the solver (i.e. pimpleDyMFoam) > log

2. all residuals will be saved in log file

3. OpenFOAM has a tool called ''foamLog'' which will scan an output file for certain things, and can customise it for your own requirement.

4. run foamLog log (where log is the name of the standard output file. Data will be written to another directory called ''logs''.

5. To get additional customised data you'll need to
i. creat a directory structure in home directory called .OpenFOAM/2.2.2 (where 2.2.2 is OpenFOAM version you are using. Please note that ''.'' at the front.

ii. copy the file OpenFOAM/OpenFOAM-2.2.2/bin/tools/foamLog.db to
. OpenFOAM/2.2.2

iii. add a line at the bottom of the newly created foamLog.db
com/Centre of mass: /Centre of mass: (
you should get x component, I'm not sure there is a way to get y component.

iv. run foamLog log to get ''com'' file in logs directory.

I hope that would help.

Regarding the centre of mass of two cylinders, I don't have any idea. I never work with two cylinders.

Kind regards

Maimouna
Quote:
Originally Posted by Maimouna View Post
Dear Jason,

I just got time to test your case (vibratingCylinder). It is working fine in my machine. Yah, tell me please, what's your doubt and questions again.
Attached Files
File Type: gz freeVibratingCylinder.tar.gz (5.2 KB, 48 views)
llib11ik is offline   Reply With Quote

Old   December 11, 2015, 04:25
Default
  #120
Senior Member
 
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 13
Maimouna is on a distinguished road
Dear Jason,
I'm away from my Ubuntu machine now. Give me some days then I'll back to you.

All the best.

Maimouna
Maimouna 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
Dynamic Mesh "Shadow Wall" thezack FLUENT 0 June 4, 2013 22:09
dynamic mesh for drop interface IndrajitW FLUENT 0 March 30, 2013 08:03
dynamic mesh refinement and rhoCentralFoam ChrisA OpenFOAM Running, Solving & CFD 1 March 21, 2013 08:00
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 18:10


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