Flow123d
JS_before_hm-1716-g9144da4bf
|
Go to the documentation of this file.
83 std::string
json()
const;
92 void undef(
bool val =
true);
137 static const std::string &
unit_symbol(
unsigned int idx);
static const std::string & unit_symbol(unsigned int idx)
static UnitSI & dimensionless()
Returns dimensionless unit.
UnitSI & md(int exp=-1)
The dimension dependent meter: md^y = m^(yd), where 'd' is dimension.
std::string format_text() const
void multiply(const UnitSI &other, int exp=1)
Multiply with power of given unit.
friend UnitSI operator*(const UnitSI &a, const UnitSI &b)
Product of two units.
std::string format_latex() const
std::vector< int > exponents_
double convert_unit_from(std::string actual_unit) const
Convert and check user-defined unit.
UnitSI & m(int exp=1)
Methods set values of exponents for SI units with similar name.
static UnitSI & W()
Returns Watt.
UnitSI operator*(const UnitSI &a, const UnitSI &b)
Product of two units.
Class for representation SI units of Fields.
static UnitSI & one()
Returns dimensionless unit.
static UnitSI & Pa()
Returns Pascal.
void reset()
Reset UnitSI object (set vector of exponents to zeros and set undef flag)
UnitOrder
Values determine positions of exponents in exponents_ vector.
void undef(bool val=true)
UnitSI operator/(const UnitSI &a, const UnitSI &b)
Proportion of two units.
static UnitSI & J()
Returns Joule.
std::string format(OutputFormat form) const
Generic output formating method.
friend UnitSI operator/(const UnitSI &a, const UnitSI &b)
Proportion of two units.
bool is_def() const
Return true if the unit is defined.
bool operator==(const UnitSI &other) const
Comparison operator.