Skip to content

Commit

Permalink
allow wall temp to be non-constant in isothermal BCs
Browse files Browse the repository at this point in the history
  • Loading branch information
majosm committed May 16, 2023
1 parent 1b50b1b commit 018ff2f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mirgecom/boundary.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
from mirgecom.flux import num_flux_central
from mirgecom.gas_model import make_fluid_state, replace_fluid_state
from pytools.obj_array import make_obj_array
from mirgecom.utils import project_from_base

from mirgecom.inviscid import inviscid_facial_flux_rusanov

Expand Down Expand Up @@ -1637,7 +1638,8 @@ def __init__(self, wall_temperature=300):

def temperature_bc(self, dcoll, dd_bdry, state_minus, **kwargs):
"""Get temperature value used in grad(T)."""
return 0*state_minus.temperature + self._wall_temp
wall_temp = project_from_base(dcoll, dd_bdry, self._wall_temp)
return 0*state_minus.temperature + wall_temp

def state_bc(self, dcoll, dd_bdry, gas_model, state_minus, **kwargs):
"""Return BC fluid state."""
Expand Down Expand Up @@ -1732,7 +1734,8 @@ def __init__(self, wall_temperature=300):

def temperature_bc(self, dcoll, dd_bdry, state_minus, **kwargs):
"""Get temperature value used in grad(T)."""
return 0*state_minus.temperature + self._wall_temp
wall_temp = project_from_base(dcoll, dd_bdry, self._wall_temp)
return 0*state_minus.temperature + wall_temp

def state_bc(self, dcoll, dd_bdry, gas_model, state_minus, **kwargs):
"""Return BC fluid state."""
Expand Down

0 comments on commit 018ff2f

Please sign in to comment.