Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Radiation for production #908

Closed
wants to merge 52 commits into from
Closed

Conversation

tulioricci
Copy link
Collaborator

No merge, only production feeder

Questions for the review:

  • Is the scope and purpose of the PR clear?
    • The PR should have a description.
    • The PR should have a guide if needed (e.g., an ordering).
  • Is every top-level method and class documented? Are things that should be documented actually so?
  • Is the interface understandable? (I.e. can someone figure out what stuff does?) Is it well-defined?
  • Does the implementation do what the docstring claims?
  • Is everything that is implemented covered by tests?
  • Do you see any immediate risks or performance disadvantages with the design? Example: what do interface normals attach to?

@tulioricci tulioricci added the nomerge Not meant for merging label May 26, 2023
mirgecom/boundary.py Outdated Show resolved Hide resolved
@MTCam MTCam added Production Feeder Feeds the production branch enhancement New feature or request labels May 26, 2023
@MTCam MTCam mentioned this pull request Jun 29, 2023
Comment on lines 818 to 843
if interface_radiation:
def make_fluid_boundary(interface_tpair):
if interface_noslip:
fluid_bc_class = IsothermalWallBoundary
else:
fluid_bc_class = IsothermalSlipWallBoundary
return fluid_bc_class(interface_tpair.ext.temperature)

def make_fluid_boundary(interface_tpair):
return fluid_bc_class(
interface_tpair.ext.kappa,
interface_tpair.ext.temperature)
def make_wall_boundary(interface_tpair):
return InterfaceWallRadiationBoundary(
interface_tpair.ext.kappa)

def make_wall_boundary(interface_tpair):
return InterfaceWallBoundary(
interface_tpair.ext.kappa,
interface_tpair.ext.temperature)
else:
def make_fluid_boundary(interface_tpair):
if interface_noslip:
fluid_bc_class = InterfaceFluidNoslipBoundary
else:
fluid_bc_class = InterfaceFluidSlipBoundary
return fluid_bc_class(
interface_tpair.ext.kappa,
interface_tpair.ext.temperature)

def make_wall_boundary(interface_tpair):
return InterfaceWallBoundary(
interface_tpair.ext.kappa,
interface_tpair.ext.temperature)
Copy link
Member

Choose a reason for hiding this comment

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

As far as I can tell, this block is instantiating new class objects these every time it is called. This is a mild performance concern for me. Could we not set thefluid_bc_class upon creation, and update its data on the fly instead of re-instantiating with every call?

Copy link
Collaborator

Choose a reason for hiding this comment

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

AFAIK the classes only exist during compilation, so I don't think this would affect performance.

Copy link
Member

@MTCam MTCam left a comment

Choose a reason for hiding this comment

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

Took a quick pass, looks great to me. I just have a little concern about how we're handling fluid_bc_class, not sure it'd be critical at this point.

@majosm
Copy link
Collaborator

majosm commented Jul 17, 2023

Took a quick pass, looks great to me. I just have a little concern about how we're handling fluid_bc_class, not sure it'd be critical at this point.

Thanks! (FYI, the "real" radiation PR is #893. This one is that + ESDG. Strictly speaking I guess that means ESDG should merge before radiation? But I think if we merge #893 into main, then merge this into #922, and finally merge that up with the new main, it should work out in the end.)

@majosm majosm mentioned this pull request Jul 17, 2023
8 tasks
@MTCam MTCam closed this Jul 18, 2023
@tulioricci tulioricci deleted the tulio/radiation_feeder branch August 23, 2023 22:26
@tulioricci tulioricci restored the tulio/radiation_feeder branch August 23, 2023 22:28
@tulioricci tulioricci deleted the tulio/radiation_feeder branch August 23, 2023 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request nomerge Not meant for merging Production Feeder Feeds the production branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants