|
[Sponsors] |
July 1, 2019, 13:38 |
multi-region problem with dynamic mesh
|
#1 |
New Member
shach
Join Date: Apr 2019
Posts: 26
Rep Power: 7 |
Hi foamers,
I am wandering if the multiregion solver like chtMultiRegionFoam support dynamicMesh. By dynamicMesh, i mean solid moving part, not dynamic refine mesh. Anyone has experience with it? Thanks1 |
|
July 1, 2019, 16:08 |
|
#2 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51 |
Hi,
simple answer. No it is not implemented. The meshes are derived from the fvMesh class and not the dynamic mesh class. Code:
forAll(fluidNames, i) { Info<< "Create fluid mesh for region " << fluidNames[i] << " for time = " << runTime.timeName() << nl << endl; fluidRegions.set ( i, new fvMesh ( IOobject ( fluidNames[i], runTime.timeName(), runTime, IOobject::MUST_READ ) ) ); } However, it is possible to re-built the solvers for dynamic meshes. As an idea, if we use dynamic meshes, we do have to implement it as follows (this is just the createDynamicMesh.H file. Code:
Info<< "Create mesh for time = " << runTime.timeName() << nl << endl; autoPtr<dynamicFvMesh> meshPtr ( dynamicFvMesh::New ( IOobject ( dynamicFvMesh::defaultRegion, runTime.timeName(), runTime, IOobject::MUST_READ ) ) ); dynamicFvMesh& mesh = meshPtr(); Code:
fvScalarMatrix hEqn ( fvm::ddt(betav*rho, h) - ( thermo.isotropic() ? fvm::laplacian(betav*thermo.alpha(), h, "laplacian(alpha,h)") : fvm::laplacian(betav*taniAlpha(), h, "laplacian(alpha,h)") ) + fvm::div(theMeshFluxFieldPhi, h) == fvOptions(rho, h) ); Tobi
__________________
Keep foaming, Tobias Holzmann |
|
July 1, 2019, 16:41 |
|
#3 |
New Member
shach
Join Date: Apr 2019
Posts: 26
Rep Power: 7 |
Hello Tobi,
I just tried with a simple case and found out the dynamicMesh is not implemented by chtMultiRegionFoam... Thanks a lot for the instruction, I will try it tomorrow and update it later if it works. |
|
July 2, 2019, 07:22 |
|
#4 | |
New Member
shach
Join Date: Apr 2019
Posts: 26
Rep Power: 7 |
Hi Tobi,
I am trying to implement this solver. However, I have a question about the fluid domain. I want to rotate the solid region, but the solid region is not a regular cylinder, the rotating region I difned is a cyliner, AMI boundary is used. Fluid cannot be totally excluded from the rotating region. So I do need to include the correctPhi for the fluid region too? Then, if the solver works, the fluid and solid both need a dynamicMeshDict and with the same rotating velocity and coupled surface. Do you think this will work? Thanks! Quote:
|
||
May 25, 2020, 17:53 |
|
#5 |
New Member
Charlie Marshall
Join Date: Jan 2020
Posts: 17
Rep Power: 6 |
Thanks. Is there any chtMultiRegionFoam + moving mesh available in the community?
Moving solid + conjugate heat transfer seems not a rare scenario. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] preserveFaceZones constraint on a multi region mesh | ViktorKL | OpenFOAM Meshing & Mesh Conversion | 5 | May 21, 2019 11:45 |
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! | divergence | OpenFOAM Meshing & Mesh Conversion | 0 | January 23, 2019 04:17 |
Dynamic mesh problem | entlit | FLUENT | 0 | June 9, 2016 04:19 |
Local mesh refinement definition in a DEFORMING dynamic mesh zone using Dynamic Mesh | Emanuele88 | FLUENT | 0 | February 9, 2016 11:39 |
Suggestions for a multi region conjugate heat transfer problem | maddalena | OpenFOAM | 14 | September 4, 2013 18:03 |