hexed 0.3.0
 
Loading...
Searching...
No Matches
hexed::Transport_model Class Reference

#include <Transport_model.hpp>

Public Member Functions

double coefficient (double sqrt_temp) const
 

Static Public Member Functions

static Transport_model inviscid ()
 create a Transport_model that always returns 0 (with is_viscous set to false)
 
static Transport_model constant (double value)
 create a Transport_model that always returns the same constant value
 
static Transport_model sutherland (double reference_value, double reference_temperature, double temperature_offset)
 

Public Attributes

const bool is_viscous
 if false, you can safely assume coefficient will always return 0 regardless of input
 

Detailed Description

A model for molecular transport coefficients (e.g. viscosity and thermal conductivity) which supports either a constant coefficient or Sutherland's law.

Member Function Documentation

◆ coefficient()

double hexed::Transport_model::coefficient ( double sqrt_temp) const
inline

Compute whatever transport coefficient this object is supposed to represent. Expects the square root of the temperature to be precomputed (so the caller can reuse it for multiple transport coefficients)

◆ sutherland()

static Transport_model hexed::Transport_model::sutherland ( double reference_value,
double reference_temperature,
double temperature_offset )
inlinestatic

create a Transport_model which depends on temperature according to Sutherland's law. It will return reference_value at reference_temperature and temperature_offset is the Sutherland constant \(S\)


The documentation for this class was generated from the following file: