Skip to content

Boundary patch implementation#369

Merged
baperry2 merged 20 commits intoAMReX-Combustion:developmentfrom
SreejithNREL:Boundary_Patch_Implementation
May 7, 2024
Merged

Boundary patch implementation#369
baperry2 merged 20 commits intoAMReX-Combustion:developmentfrom
SreejithNREL:Boundary_Patch_Implementation

Conversation

@SreejithNREL
Copy link
Copy Markdown
Collaborator

Added functionalities for reporting species mass flux through user-specified patches on non-EB boundaries. Patches are user specific zones that the user can specify-currently, patch types are full-boundary, circle, rectangle, circle-annular and rectangle-annular. Once the variable do_patch_mfr is set to 1, the solver writes down these fluxes similar to other temporals.

@jrood-nrel jrood-nrel requested review from baperry2 and removed request for esclapez and jrood-nrel April 22, 2024 22:20
@baperry2
Copy link
Copy Markdown
Collaborator

baperry2 commented Apr 23, 2024

A few general comments (I may have more when I dig in in more detail)

  • Add the new source files to CMake/BuildPeleExe.cmake
  • Add some documentation on this capability . At a minimum, add the input file flags to Docs/sphinx/manual/LMeXControls.rst
  • Activate this capability for one of the test cases, e.g. in Exec/RegTests/TurbInflow/input.3d

ParallelAllReduce::Sum<Real>(
{sum_species_flux_global}, ParallelContext::CommunicatorSub());
bpdevice->speciesFlux[m] = a_factor * sum_species_flux_global;
// amrex::Print()<<"\nNew func = "<<a_factor * sum_species_flux_global;

Check notice

Code scanning / CodeQL

Commented-out code

This comment appears to contain commented-out code.
{
bool inside = false;

// auto dx = geom.CellSizeArray();

Check notice

Code scanning / CodeQL

Commented-out code

This comment appears to contain commented-out code.
Copy link
Copy Markdown
Collaborator

@baperry2 baperry2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested:

  • Add documentation on additional input options
  • In documentation, mention that bpatch fluxes are computed based on cell center locations on the coarsest level, so could differ from actual values when there is refinement
  • Merge in fixes for host/device pointer stuff: SreejithNREL#1

@baperry2 baperry2 enabled auto-merge (squash) May 6, 2024 22:56
@baperry2 baperry2 merged commit f91b9b8 into AMReX-Combustion:development May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants