|
[Sponsors] |
September 1, 2021, 22:15 |
Help with dynamicFvMesh
|
#1 |
New Member
Andi
Join Date: Sep 2021
Posts: 3
Rep Power: 5 |
Hello Foamers
I'm solving a problem with overInterDyMFoam. Now I want to compile AMR into my program, and I know that their dynamicFvMesh are not compatible. How can I do it ? Best regard |
|
September 2, 2021, 05:07 |
|
#2 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
Hello,
the problem here is that dynamicRefineFvMesh inherits from dynamicFvMesh and dynamicOversetFvMesh inherits from dynamicMotionSolverListFvMesh which inherits from dynamicFvMesh. So merging the functionaltiy of the overset mesh and of AMR in on class is not so trivial. Be doing this you get the so called diamod of death: https://en.wikipedia.org/wiki/Multiple_inheritance There are some workarounds in the web to solve this issue. Maybe you can try a few and report back if you were successfull. Best Michael |
|
September 2, 2021, 08:20 |
|
#3 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
As pointed out here: https://stackoverflow.com/questions/...le-inheritance
a compositon of AMR and overset would help making a new class oversetAMR. I tried it once but then I reliesed that I constructed two different meshes since I called the constructurs of AMR and overset in the constructor of oversetAMR. So maybe one can trie to construct overset first and give that a reference of overset to AMR and construct ARM from a reference of overset. Then maybe functionality of AMR can be used on overset. One can try this and look if it's working |
|
September 6, 2021, 03:15 |
|
#4 |
New Member
Andi
Join Date: Sep 2021
Posts: 3
Rep Power: 5 |
Sorry for the late reply and thank you very much.
I will try about that. Best regards |
|
Tags |
amr |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to add dynamicFvMesh types to a solver? | Harak | OpenFOAM Running, Solving & CFD | 3 | March 31, 2021 07:03 |
dynamicFvMesh and pimpleMultiRegionControl | jianglong | OpenFOAM Running, Solving & CFD | 0 | January 2, 2020 22:44 |
Trying to compile a new DynamicFvMesh Solver | SteppenSoul | OpenFOAM Programming & Development | 12 | June 1, 2019 20:08 |
[Other] An updated look of dynamicFvMesh motion types | fedvasu | OpenFOAM Meshing & Mesh Conversion | 0 | March 10, 2014 14:40 |
Valid dynamicFvMesh types in OF-1.6 | xfeng | OpenFOAM Running, Solving & CFD | 1 | January 18, 2010 05:38 |