|
[Sponsors] |
Combination of dynamicMesh solver & layer addition/removal |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 15, 2018, 14:56 |
Combination of dynamicMesh solver & layer addition/removal
|
#1 |
New Member
Martn Flintstone
Join Date: May 2018
Posts: 3
Rep Power: 8 |
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 Last edited by martn; September 16, 2018 at 04:24. Reason: Attached files |
|
September 16, 2018, 16:43 |
|
#2 |
Senior Member
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14 |
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. |
|
September 20, 2018, 04:28 |
|
#3 | |
New Member
Martn Flintstone
Join Date: May 2018
Posts: 3
Rep Power: 8 |
Quote:
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 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_; 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)) Does anybody know more about this? |
||
August 14, 2020, 04:09 |
Full case
|
#4 |
New Member
Goeran Gabriel
Join Date: Oct 2016
Posts: 5
Rep Power: 10 |
Hey Martn,
just found this Thread. I actually can't help you and I assume you finished this work But would it be possible, that you provide the whole case? I am working on a moving piston simulation as well, but I can't get the layerAdditionRemoval modifier to work as supossed. Thanks! |
|
June 16, 2022, 07:15 |
MovingCone
|
#5 |
Member
Michael Sukham
Join Date: Mar 2020
Location: India
Posts: 85
Rep Power: 6 |
The source code is your friend. The faces which will move are hard coded and the movement is specific for x direction only. It uses motion masking and moving the points nin the motion mask. I did layer removal which works fine but after some removals the face begins collapsing onto itself which should not occur. I can happily share the code for you to check if it works on your machine.
With regards |
|
Tags |
dynamic mesh, dynamicfvmesh, layer addition removal, movingconetopofvmesh |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] snappyHexMesh Boundary Layer at Corner | panpanzhong | OpenFOAM Meshing & Mesh Conversion | 5 | July 3, 2018 06:53 |
[snappyHexMesh] Problem airfoil snappyhexmesh add layer | bye bye my blue | OpenFOAM Meshing & Mesh Conversion | 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 |