Skip to content

Commit

Permalink
Fix transport 1
Browse files Browse the repository at this point in the history
  • Loading branch information
MTCam committed Sep 7, 2024
1 parent 6a2da92 commit 309c424
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions mirgecom/eos.py
Original file line number Diff line number Diff line change
Expand Up @@ -867,9 +867,9 @@ def get_species_source_terms(self, cv: ConservedVars, temperature: DOFArray):
w = self.get_species_molecular_weights()
dim = cv.dim
species_sources = w * omega
rho_source = 0. * cv.mass
mom_source = 0. * cv.momentum
energy_source = 0. * cv.energy
rho_source = 0 * cv.mass # type: ignore
mom_source = 0 * cv.momentum
energy_source = 0 * cv.energy # type: ignore

return make_conserved(dim, rho_source, energy_source, mom_source,
species_sources)
Expand Down
10 changes: 5 additions & 5 deletions mirgecom/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ class GasTransportVars:
.. attribute:: species_diffusivity
"""

bulk_viscosity: np.ndarray
viscosity: np.ndarray
thermal_conductivity: np.ndarray
bulk_viscosity: DOFArray
viscosity: DOFArray
thermal_conductivity: DOFArray
species_diffusivity: np.ndarray


Expand Down Expand Up @@ -124,7 +124,7 @@ def thermal_conductivity(self, cv: ConservedVars,

def species_diffusivity(self, cv: ConservedVars,
dv: Optional[GasDependentVars] = None,
eos: Optional[GasEOS] = None) -> DOFArray:
eos: Optional[GasEOS] = None) -> np.ndarray:
r"""Get the vector of species diffusivities, ${d}_{\alpha}$."""
raise NotImplementedError()

Expand Down Expand Up @@ -197,7 +197,7 @@ def thermal_conductivity(self, cv: ConservedVars,

def species_diffusivity(self, cv: ConservedVars,
dv: Optional[GasDependentVars] = None,
eos: Optional[GasEOS] = None) -> DOFArray:
eos: Optional[GasEOS] = None) -> np.ndarray:
r"""Get the vector of species diffusivities, ${d}_{\alpha}$."""
return self._d_alpha*(0*cv.mass + 1.0)

Expand Down

0 comments on commit 309c424

Please sign in to comment.