Skip to content

Commit

Permalink
Fix up transport 2
Browse files Browse the repository at this point in the history
  • Loading branch information
MTCam committed Sep 7, 2024
1 parent 309c424 commit 7800e67
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions mirgecom/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,13 @@ def bulk_viscosity(self, cv: ConservedVars,
dv: Optional[GasDependentVars] = None,
eos: Optional[GasEOS] = None) -> DOFArray:
r"""Get the bulk viscosity for the gas, $\mu_{B}$."""
return self._mu_bulk*(0*cv.mass + 1.0)
return self._mu_bulk*(0*cv.mass + 1.0) # type: ignore

def viscosity(self, cv: ConservedVars,
dv: Optional[GasDependentVars] = None,
eos: Optional[GasEOS] = None) -> DOFArray:
r"""Get the gas dynamic viscosity, $\mu$."""
return self._mu*(0*cv.mass + 1.0)
return self._mu*(0*cv.mass + 1.0) # type: ignore

def volume_viscosity(self, cv: ConservedVars,
dv: Optional[GasDependentVars] = None,
Expand All @@ -187,19 +187,19 @@ def volume_viscosity(self, cv: ConservedVars,
\lambda = \left(\mu_{B} - \frac{2\mu}{3}\right)
"""
return (self._mu_bulk - 2 * self._mu / 3)*(0*cv.mass + 1.0)
return (self._mu_bulk - 2 * self._mu / 3)*(0*cv.mass + 1.0) # type: ignore

def thermal_conductivity(self, cv: ConservedVars,
dv: Optional[GasDependentVars] = None,
eos: Optional[GasEOS] = None) -> DOFArray:
r"""Get the gas thermal_conductivity, $\kappa$."""
return self._kappa*(0*cv.mass + 1.0)
return self._kappa*(0*cv.mass + 1.0) # type: ignore

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


class PowerLawTransport(TransportModel):
Expand Down Expand Up @@ -318,7 +318,7 @@ def species_diffusivity(self, cv: ConservedVars, # type: ignore[override]
return (self._sigma * self.viscosity(cv, dv)/(
cv.mass*self._lewis*eos.gamma(cv, dv.temperature))
)
return self._d_alpha*(0*cv.mass + 1.)
return self._d_alpha*(0*cv.mass + 1.) # type: ignore


class MixtureAveragedTransport(TransportModel):
Expand Down Expand Up @@ -576,7 +576,7 @@ def thermal_conductivity(self, cv: ConservedVars, # type: ignore[override]

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._physical_transport.species_diffusivity(cv, dv, eos)

Expand Down Expand Up @@ -696,7 +696,7 @@ def thermal_conductivity(self, cv: ConservedVars, # type: ignore[override]

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._physical_transport.species_diffusivity(cv, dv, eos)

Expand Down

0 comments on commit 7800e67

Please sign in to comment.