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

Combination of dynamicMesh solver & layer addition/removal

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 15, 2018, 14:56
Default Combination of dynamicMesh solver & layer addition/removal
  #1
New Member
 
Martn Flintstone
Join Date: May 2018
Posts: 3
Rep Power: 2
martn is on a distinguished road
Hi guys,

I use OF 1712 and want to simulate a engine motion with a moving piston & valves. The aim is to do it with topological changes of the mesh.
I created a case with the movingConeTopoFvMesh class. The mesh is build up like a moving piston in a cylinder which compresses air. The creation of a meshModifier file within the layerAdditionRemoval type complete my case. It works fine! The air is compressed like it should and the layers are removed (compression) and added (expansion).

Now I want to go further with the layerAdditionRemoval to the valves but without using the movingConeTopoFvMesh class. In the first steps I just replace the movingConeTopoFvMesh with the dynamicMotionSolverTopoFvMesh and the displacementInterpolation solver. So I am able to use a motion function for the moving parts. But despite using the meshModifier with the layerAdditionRemoval it is not working. No layers are chaniging. The cells are compressed by the motion.

Is this combination just not working or what should I change to use layerAR with another motion class except of the movingConeTopoFvMesh. The aim is to use a motion solver which I can predefine a motion function.

Best wishes,
Martn
Attached Files
File Type: txt meshModifiers.txt (1.0 KB, 4 views)
File Type: txt dynamicMeshDict.txt (1.1 KB, 3 views)

Last edited by martn; September 16, 2018 at 04:24. Reason: Attached files
martn is offline   Reply With Quote

Old   September 16, 2018, 16:43
Default
  #2
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 136
Rep Power: 4
simrego is on a distinguished road
Hi!


You should check the tutorial:
tutorials/multiphase/compressibleInterDyMFoam/laminar/sphereDrop
I think you will need something like that.


Here you can find an example video about the same motion solver +LAR + AMI (This is my dummy video, just made for some explanation earier...) :
https://www.youtube.com/watch?v=mcWCuTLolFg


But you can also write your own motion solver which will create the topology modifiers for you on the fly.
simrego is offline   Reply With Quote

Old   September 20, 2018, 04:28
Default
  #3
New Member
 
Martn Flintstone
Join Date: May 2018
Posts: 3
Rep Power: 2
martn is on a distinguished road
Quote:
tutorials/multiphase/compressibleInterDyMFoam/laminar/sphereDrop
This looks great!
Thank you!

I am just trying this tutorial but I want to define a motion in the pointDisplacement file with the type of "uniformInterpolatedDisplacement". I think this is the right type to predefine a motion with a table of time & coordinates but I do not know how to create this "table"-file.
I always get the error:
Code:
Did not find any times with table
I looked in the "uniformInterpolatedDiscplacementPointPatchVectorF ield.C" file
Code:
public fixedValuePointPatchField<vector>
{
    // Private data

        //- Name of displacement field
        const word fieldName_;

        const word interpolationScheme_;

        //- Times with pre-specified displacement
        wordList timeNames_;

        //- Times with pre-specified displacement
        scalarField timeVals_;

        //- User-specified interpolator
        autoPtr<interpolationWeights> interpolatorPtr_;


        //- Cached interpolation times
        labelList currentIndices_;

        //- Cached interpolation weights
        scalarField currentWeights_;
But I do not find out in which form the file with the time table must be. I used something like this:
Code:
(
(0.00000000 (0 0 0))
(0.00008333 (5.483e-06 0 0))
(0.00016667 (2.193e-05 0 0))
(0.00025000 (4.9337e-05 0 0))
(0.00033333 (8.7694e-05 0 0))
(0.00041667 (0.000136991 0 0))
(0.00050000 (0.000197212 0 0))
(0.00058333 (0.000268339 0 0))
(0.00066667 (0.00035035 0 0))
(0.00075000 (0.00044322 0 0))
with the time in the first column and the coordinates of the motion in the second column but it didn't work.
Does anybody know more about this?
martn is offline   Reply With Quote

Reply

Tags
dynamic mesh, dynamicfvmesh, layer addition removal, movingconetopofvmesh

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
snappyHexMesh Boundary Layer at Corner panpanzhong OpenFOAM Native Meshers: snappyHexMesh and Others 5 July 3, 2018 06:53
Problem airfoil snappyhexmesh add layer bye bye my blue OpenFOAM Native Meshers: snappyHexMesh and Others 1 May 5, 2017 06:56
Hybrid discretisation - blend factor gcoopermax CFX 5 September 23, 2016 09:05
Star cd es-ice solver error ernarasimman STAR-CD 2 September 12, 2014 01:01
2D boundary layer solver (STAN7) Chanaka Mallikarachchi Main CFD Forum 0 January 6, 2001 01:13


All times are GMT -4. The time now is 14:12.