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
24 stars 37 forks source link

Reading 2D temperature field #203

Closed bazharz closed 1 year ago

bazharz commented 1 year ago

Can the PeleLMeX be configured to incorporate a 2D temperature field from a .dat file for the Flamesheet case?

esclapez commented 1 year ago

Do you mean as an initial or a boundary condition ?

bazharz commented 1 year ago

As an initial condition!

esclapez commented 1 year ago

It is possible to do something like that, but nothing out-of-the-box, you'll will need to implement the IO in the pelelm_prob* files. For example in the Exec/Case/ChallengeProblem case, we load velocities data from a binary/ASCII file to use them as initial conditions. You'll need the following:

The example of the HIT file is pretty lengthy, but it can handle interpolating the data consistently over multiple AMR during the initialization and so on. You might be able to simplify the code a bit if you know that the resolution of your ASCII data matches the AMR level cartesian grid for instance.

bazharz commented 1 year ago

I appreciate your response, and I would like to conclude that this matter can now be considered resolved.