AMReX-Combustion / PeleLMeX

An adaptive mesh hydrodynamics simulation code for low Mach number reacting flows without level sub-cycling.
https://amrex-combustion.github.io/PeleLMeX/
BSD 3-Clause "New" or "Revised" License
28 stars 41 forks source link

Import 3D mesh #407

Open barbariansubhkaran opened 3 weeks ago

barbariansubhkaran commented 3 weeks ago

Hello,

I have a 3D mesh of a combustion chamber. I want to import it in PeleLMex. Please help me. Is there any entry I can make in the input file?

Thank you

drummerdoc commented 3 weeks ago

You can look into AMReX's capabilities with STL files. You will likely run into issues being able to coarsen the geometry to produce a sufficient number of levels for the multigrain solver to perform well, depending on the complexity of your geometry. However, we are in the process of adding an AMG-based solver capability to PeleLMeX which may help with that aspect. Perhaps you can create a fork of the repo and include the geometry information and forward a link? If so, we can try to include your case in our testing.

baperry2 commented 3 weeks ago

A few notes beyond what @drummerdoc said:

barbariansubhkaran commented 3 weeks ago

@drummerdoc Thank you sir, the case is :- I have a Cylindrical shape with with smaller cylinders attached to it, from where the CH4 and pilot flame enters. If you are in the process of adding the geometry capabilities please look into the .3mf format (https://3mf.io/). I have been trying to add this into OpenFOAM. This format does not support non-orthogonal edges by design. I will add the geometry and create the pull request.

@baperry2 Oh! There are two codes, which one is better for diffusion flames and spray combustion?? I will try to perform my case in PeleC too.

baperry2 commented 2 weeks ago

If your geometry is just a combination of different cylinders, you should definitely just use the capability to build your geometry up from simple shapes, see documentation:

Both codes can support that use case. As the names imply, LMeX if preferred for low Mach number cases and C is preferred for fully compressible cases, although there are some other subtleties in specific capability differences between the codes.