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

circular cylinder oscillating: don't know how to set the dynamicMeshDict file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 9, 2015, 09:32
Default circular cylinder oscillating: don't know how to set the dynamicMeshDict file
  #1
New Member
 
Join Date: Feb 2014
Location: CHINA
Posts: 1
Rep Power: 0
John.C is on a distinguished road
hello,everyone:
I am a beginner for openfoam.Now I am studying circular cylinder oscillating in fluid at rest using pimpleDymFoam. And I want to ask something about the moving mesh problems.I don't know how to set the dynamicMeshDic file.

FoamFile
{
version 2.0;
format ascii;
class dictionary;
object dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

// dynamicFvMesh staticFvMesh;
dynamicFvMesh multiTopoBodyFvMesh;

multiTopoBodyFvMeshCoeffs
{
body
(
frontCyl
{
movingCells cyl1;
layerFaces
(
topLayerCyl1
botLayerCyl1
);

solidBodyMotionFunction linearOscillation;
linearOscillationCoeffs
{
amplitude (0 0.01 0);
period 4;
}

minThickness 0.0015;
maxThickness 0.004;

invertMask true;
}

/* backCyl
{
movingCells cyl2;
layerFaces
(
topLayerCyl2
botLayerCyl2
);

solidBodyMotionFunction linearOscillation;
linearOscillationCoeffs
{
amplitude (0 -0.025 0);
period 2;
}

minThickness 0.0015;
maxThickness 0.004;

invertMask true;
}*/
);
}

// ************************************************** *********************** //
This is the file I copied in the movingcylinders tutorial. And I want to simulate one cylinder oscillating in fluid at rest.How did I revise this file?
Thank you so much for your help!
John.C is offline   Reply With Quote

Old   June 11, 2015, 02:19
Default
  #2
New Member
 
Chu Yung Jeh
Join Date: Mar 2012
Posts: 7
Rep Power: 14
chujeh2020 is on a distinguished road
Quote:
Originally Posted by John.C View Post
hello,everyone:
I am a beginner for openfoam.Now I am studying circular cylinder oscillating in fluid at rest using pimpleDymFoam. And I want to ask something about the moving mesh problems.I don't know how to set the dynamicMeshDic file.

FoamFile
{
version 2.0;
format ascii;
class dictionary;
object dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

// dynamicFvMesh staticFvMesh;
dynamicFvMesh multiTopoBodyFvMesh;

multiTopoBodyFvMeshCoeffs
{
body
(
frontCyl
{
movingCells cyl1;
layerFaces
(
topLayerCyl1
botLayerCyl1
);

solidBodyMotionFunction linearOscillation;
linearOscillationCoeffs
{
amplitude (0 0.01 0);
period 4;
}

minThickness 0.0015;
maxThickness 0.004;

invertMask true;
}

/* backCyl
{
movingCells cyl2;
layerFaces
(
topLayerCyl2
botLayerCyl2
);

solidBodyMotionFunction linearOscillation;
linearOscillationCoeffs
{
amplitude (0 -0.025 0);
period 2;
}

minThickness 0.0015;
maxThickness 0.004;

invertMask true;
}*/
);
}

// ************************************************** *********************** //
This is the file I copied in the movingcylinders tutorial. And I want to simulate one cylinder oscillating in fluid at rest.How did I revise this file?
Thank you so much for your help!
Dear John.C
Please refer to this thread
http://www.cfd-online.com/Forums/ope...amic-mesh.html

Thank you.
chujeh2020 is offline   Reply With Quote

Old   June 18, 2015, 10:54
Default
  #3
Member
 
Join Date: Feb 2015
Posts: 39
Rep Power: 11
HenningW is on a distinguished road
Hi John,

I am using a cylindrical shaped part of my mesh around an airfoil that is oscillating with 100Hz between -+5° (sliding mesh).

Here is my file ... hence that I have two cylinders moving. However, the structure for a SolidBodyMotion should be more or less the same.

Code:
dynamicFvMesh multiSolidBodyMotionFvMesh;
multiSolidBodyMotionFvMeshCoeffs
{
    movingZoneLeft
    {
    solidBodyMotionFunction oscillatingRotatingMotion;
    oscillatingRotatingMotionCoeffs
    {
        amplitude (0 5 0);
        omega 628.32;
        origin (0 .4 -.4);
    }
    }
    movingZoneRight //The name I gave it
    {
    solidBodyMotionFunction oscillatingRotatingMotion;
    oscillatingRotatingMotionCoeffs
    {
        amplitude (0 5 0);
        omega 628.32;
        origin (0 .4 .4);
    }
    }
}
I hope this helps!

Last edited by HenningW; July 8, 2015 at 11:31.
HenningW 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
[OpenFOAM.org] Patches to compile OpenFOAM 2.2 on Mac OS X gschaider OpenFOAM Installation 136 October 10, 2017 18:25
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 11:57
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


All times are GMT -4. The time now is 07:41.