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

Help with dynamicFvMesh

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By mAlletto

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 1, 2021, 22:15
Post Help with dynamicFvMesh
  #1
New Member
 
Andi
Join Date: Sep 2021
Posts: 3
Rep Power: 5
bubbleb is on a distinguished road
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
bubbleb is offline   Reply With Quote

Old   September 2, 2021, 05:07
Default
  #2
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
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
mAlletto is offline   Reply With Quote

Old   September 2, 2021, 08:20
Default
  #3
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
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
bubbleb likes this.
mAlletto is offline   Reply With Quote

Old   September 6, 2021, 03:15
Default
  #4
New Member
 
Andi
Join Date: Sep 2021
Posts: 3
Rep Power: 5
bubbleb is on a distinguished road
Sorry for the late reply and thank you very much.
I will try about that.

Best regards
bubbleb is offline   Reply With Quote

Reply

Tags
amr


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
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


All times are GMT -4. The time now is 11:54.