conspire/constitutive/fluid/hyperviscous/
mod.rs1#[cfg(feature = "autodiff")]
4pub mod autodiff;
5
6mod newtonian;
7mod saint_venant_kirchhoff;
8
9pub use self::{newtonian::Newtonian, saint_venant_kirchhoff::SaintVenantKirchhoff};
10
11use crate::{
12 constitutive::{ConstitutiveError, fluid::viscous::Viscous},
13 math::{Quantity, Scalar},
14 mechanics::{DeformationGradient, DeformationGradientRate},
15 units::Dissipation,
16};
17
18const TWO_THIRDS: Scalar = 2.0 / 3.0;
19
20pub trait Hyperviscous
22where
23 Self: Viscous,
24{
25 fn viscous_dissipation(
31 &self,
32 deformation_gradient: &DeformationGradient,
33 deformation_gradient_rate: &DeformationGradientRate,
34 ) -> Result<Quantity<Dissipation>, ConstitutiveError>;
35}