12#ifndef BELFEM_CL_MATERIAL_HPP
13#define BELFEM_CL_MATERIAL_HPP
61#pragma clang diagnostic push
62#pragma clang diagnostic ignored "-Wformat-security"
63#pragma clang diagnostic ignored "-Wformat"
64#pragma clang diagnostic ignored "-Wunused-variable"
65#pragma clang diagnostic ignored "-Wunused-parameter"
67#elif defined(__GNUC__) || defined(__GNUG__)
68#pragma GCC diagnostic push
69#pragma GCC diagnostic ignored "-Wformat"
70#pragma GCC diagnostic ignored "-Wunused-variable"
71#pragma GCC diagnostic ignored "-Wunused-parameter"
73#elif defined(BELFEM_INTEL)
77#pragma warning(disable: 1011)
79#pragma warning(disable: 177)
81#pragma warning(disable: 1595)
95 class SplineLookupTable ;
275 const bool mIsIsotropic ;
279 string mNumber =
"" ;
336 HeatFunc * mHeatFunction = nullptr ;
341 void * mDefectHandle = nullptr ;
344 void * mHeatHandle = nullptr ;
476 flag(
const uint8_t aIndex = 0 );
479 unflag(
const uint8_t aIndex = 0 );
482 is_flagged(
const uint8_t aIndex = 0 )
const ;
778 n(
const real normB,
const real angleNxB,
const real T )
const ;
781 n(
const real normB,
const real angleNxB )
const ;
787 jc(
const real normB,
const real angleNxB )
const ;
968 H(
const real B )
const ;
1189 const string & aLabel ) ;
1212 const string & aLabel ) ;
1229 const real T )
const ;
1234 const real T )
const ;
1252 const std::vector< real > & Coefficients ) ;
1371 const real aStep=4.0 ) ;
1577 const uint aStartBC,
1581 const real aStep=4.0 ) ;
1585 inline const string &
1591 inline const string &
1606 BELFEM_ASSERT( aIndex < 8,
"Flag index %u out of bounds (must be < 8)",
1607 (
unsigned int ) aIndex );
1608 mFlags |= ( 1 << aIndex );
1614 BELFEM_ASSERT( aIndex < 8,
"Flag index %u out of bounds (must be < 8)",
1615 (
unsigned int ) aIndex );
1616 mFlags &= ~( 1 << aIndex );
1622 BELFEM_ASSERT( aIndex < 8,
"Flag index %u out of bounds (must be < 8)",
1623 (
unsigned int ) aIndex );
1624 return mFlags & ( 1 << aIndex );
1630 return mHaveProperty.test(
static_cast< size_t >( aProperty ) ) ;
1636 return mDefectFunction != nullptr ;
1642 return mHeatFunction != nullptr ;
1660 return mResistivityLaw ;
1666 return mPropertyDependencies(
static_cast< size_t >( aProperty ) )->test(
static_cast< uint >( aDependency ));
1672 return mPropertyDependencies(
static_cast< size_t >( aProperty ) ) ;
1678 return mIsIsotropic ;
1684 return ! std::isnan( mConstantProperties(
static_cast< index_t >( aProperty ) ) ) ;
1691 return mConstantProperties(
static_cast< size_t >( aProperty ) ) ;
1700 "Material '%s' does not have density assigned", this->
label().c_str() ) ;
1702 return ( this->*mFunctionDensity )( T );
1709 "Wrong function call for Material::density");
1717 "Material %s does not have a reference density set", mLabel.c_str() );
1719 "Material %s does not have a temperature for the reference density set", mLabel.c_str() );
1733 "Material %s does not have a reference density set", mLabel.c_str() );
1747 return ( this->*mFunctionCp )( T );
1760 return (this->*mFunctiondCpdT )( T ) ;
1767 return (this->*mFunctiond2CpdT2 )( T ) ;
1815 "Material does not have thermal conductivity" ) ;
1816 return (this->*mFunctionLambda )( T ) ;
1830 "Material does not have thermal conductivity" ) ;
1832 return (this->*mFunctiondLambdadT )( T ) ;
1859 "Material %s does not have thermal conductivity", mLabel.c_str() ) ;
1862 "wrong function call for Material::lambda in material %s", mLabel.c_str() ) ;
1864 return this->
lambda( T );
1872 "Material %s does not have thermal conductivity", mLabel.c_str() ) ;
1875 "wrong function call for Material::dlambdadT in material %s", mLabel.c_str() ) ;
1885 "Material %s does not have thermal conductivity", mLabel.c_str() ) ;
1888 "wrong function call for Material::dlambdadB in material %s", mLabel.c_str() ) ;
1898 "Material %s does not have thermal conductivity", mLabel.c_str() ) ;
1901 "wrong function call for Material::dlambdadbeta in material %s", mLabel.c_str() ) ;
1913 "Material %s does not have thermal conductivity", mLabel.c_str() ) ;
1917 return this->
lambda( T );
1925 "Material %s does not have thermal conductivity", mLabel.c_str() ) ;
1928 "wrong function call for Material::dlambdadT in material %s", mLabel.c_str() ) ;
1940 "Material %s does not have electric resistivity", mLabel.c_str() ) ;
1942 return ( this->*mFunctionRho )( T ) ;
1950 "Material %s does not have electric resistivity", mLabel.c_str() ) ;
1952 return ( this->*mFunctiondRhodT )( T ) ;
1993 "wrong function call for Material::rho in %s", mLabel.c_str() ) ;
1995 return this->
rho( T );
2005 "wrong function call for Material::drhodT in %s", mLabel.c_str() ) ;
2007 return this->
drhodT( T );
2017 "wrong function call for Material::drhodB in %s", mLabel.c_str() ) ;
2026 "wrong function call for Material::drhodbeta in %s", mLabel.c_str() ) ;
2081 "Material %s does not have Youngs Modulus", mLabel.c_str() ) ;
2082 return ( this->*mFunctionE )( T );
2103 "Material %s is not isotropic", mLabel.c_str() ) ;
2105 "Material does not have Poisson Ratio" ) ;
2107 return ( this->*mFunctionNu )( T );
2127 return this->
E( T ) / ( 2.0 * ( 1.0 + this->
nu( T ) ) ) ;
2135 return this->
E( T ) / ( 3.0 * ( 1.0 - 2.0 * this->
nu( T ) ) ) ;
2145 "Material %s does not have thermal expansion", mLabel.c_str() ) ;
2147 return ( this->*mFunctionAlpha )( T );
2171 "Material %s does not have yield stress", mLabel.c_str() ) ;
2173 return ( this->*mFunctionRp02 )( T );
2195 "Material %s does not have Debye temperature", mLabel.c_str() ) ;
2197 return ( this->*mFunctionDebye )( T );
2215 return ( this->*mFunctionRhoI )( T );
2230 "%s: alpha split temperature is not set, create_low_temperature_alpha() "
2231 "must run before alpha is evaluated", mLabel.c_str() );
2232 return mTAlphaSwitch ;
2240 BELFEM_ASSERT( mHeatFunction !=
nullptr ,
"No heat function set for material %s", mLabel.c_str() ) ;
2241 return this->mHeatFunction( x, y, z, time ) ;
2255#if defined(__clang__)
2256#pragma clang diagnostic pop
2258#elif defined(__GNUC__) || defined(__GNUG__)
2259#pragma GCC diagnostic pop
2261#elif defined(BELFEM_INTEL)
#define BELFEM_ASSERT(aCheck,...)
Definition assert.hpp:244
Base class hierarchy for critical current density (Jc) and n-value functions.
Bitset()=default
trivial constructor
Base class for all materials in BELFEM.
Definition cl_Material.hpp:270
void reset_dependencies(const MaterialProperty aProperty)
Definition cl_Material.cpp:237
virtual real drhodB_kohler(const real T, const real normB, const real angleJxB) const
Definition cl_Material.cpp:622
virtual void dmudH_bhcurve(const real H, real &mu, real &dmudH) const
Definition cl_Material.cpp:994
virtual real dEdT_custom(const real T) const
Definition cl_Material.cpp:532
real dcpdT_spline(const real T) const
Definition cl_Material.hpp:1797
void set_user_defined_heating(HeatFunc *Function)
Set a user-defined volumetric heat load [ W/m³ ] as a function of x, y, z [ m ] and t [ s ].
Definition cl_Material.cpp:800
virtual real d2cpdT2(const real T=gTroom) const
Definition cl_Material.hpp:1763
virtual real H(const real B) const
Magnetic field strength from flux density.
Definition cl_Material.hpp:2034
real Rp02_spline(const real T) const
Definition cl_Material.hpp:2183
const MaterialDependencyBitset * dependencies(const MaterialProperty aProperty) const
Definition cl_Material.hpp:1670
void set_label(const string &aLabel)
PROTECTED INTERFACE FOR DERIVED MATERIALS.
Definition cl_Material.cpp:205
bool have(const MaterialProperty aProperty) const
Definition cl_Material.hpp:1628
void dmudH_const(const real H, real &mu, real &dmudH) const
Definition cl_Material.hpp:2068
Material(const MaterialType aType, const bool aIsIsotropic=true)
Definition cl_Material.cpp:149
void set_constant(const MaterialProperty aProperty, const real aValue)
Definition cl_Material.cpp:257
bool is_constant(const MaterialProperty aProperty) const
Definition cl_Material.hpp:1682
real rho_powerlaw(const real normJ) const
Power law resistivity for HTS (constant jc and n).
Definition powerlaws.hpp:202
virtual real K(real T=gTroom) const
Bulk modulus.
Definition cl_Material.hpp:2133
virtual real rho(const real T) const
Electrical resistivity (isotropic).
Definition cl_Material.hpp:1936
virtual real jc_custom(const real T) const
Definition cl_Material.cpp:588
virtual real drhodT_kohler(const real T, const real normB, const real angleJxB) const
Definition cl_Material.cpp:615
real lambda_const(const real T) const
Definition cl_Material.hpp:1820
real n(const real normB, const real angleNxB, const real T) const
Direct evaluation of the n-value as a function of , and .
Definition powerlaws.hpp:992
void set_resistivity_law(const ResistivityLaw aLaw)
Definition cl_Material.cpp:814
virtual real E(real T=gTroom) const
Young's modulus.
Definition cl_Material.hpp:2077
real cp_const(const real T) const
Definition cl_Material.hpp:1751
MaterialType type() const
Definition cl_Material.hpp:1598
virtual void dmudH(const real H, real &mu, real &dmudH) const
Magnetic permeability and its derivative.
Definition cl_Material.hpp:2062
virtual real drhodbeta_table(const real T, const real normB, const real angleJxB) const
Definition cl_Material.cpp:657
real rho_const(const real T) const
Definition cl_Material.hpp:1963
virtual real lambda(const real T=gTroom) const
Thermal conductivity (isotropic).
Definition cl_Material.hpp:1811
real n_eval_raw(const real T, const real normB, const real angleNxB) const
Definition powerlaws.hpp:94
real drho_riva_dB(const real normJ, const real T, const real normB, const real angleNxB) const
dρ/d|B| of rho_riva: w²·dρ_PL/dB ( dρ_n/dB = 0 on this path )
Definition powerlaws.hpp:2615
virtual real alpha_custom(const real T) const
Definition cl_Material.cpp:553
virtual real lambda_custom(const real T) const
Definition cl_Material.cpp:512
virtual real evaluate_polynomial(const MaterialProperty Property, const real T) const
Evaluate a polynomial for a given property (for UserDefinedMaterial).
Definition cl_Material.cpp:931
Material(Material &&)=delete
virtual real rho_spline(const real T) const
Definition cl_Material.hpp:1975
const material::JcFunction * mJcFunction
Definition cl_Material.hpp:406
virtual real cp(const real T=gTroom) const
Specific heat capacity.
Definition cl_Material.hpp:1743
bool depends(const MaterialProperty aProperty, const MaterialDependency aDependency) const
Definition cl_Material.hpp:1664
real dcpdT_finite_difference(const real T) const
Definition cl_Material.hpp:1777
virtual real drhodT(const real T) const
Definition cl_Material.hpp:1946
bool is_isotropic() const
Definition cl_Material.hpp:1676
bool use_piecewise() const
Definition cl_Material.hpp:1646
void load_bh_curve(const material::BhCurve *aCurve)
Activate a B-H curve as the permeability source (ferromagnets).
Definition cl_Material.cpp:964
void set_number(const string &aNumber)
Definition cl_Material.cpp:211
virtual real drhodbeta_kohler(const real T, const real normB, const real angleJxB) const
Definition cl_Material.cpp:629
virtual real spline_property(const MaterialProperty aProperty, const real aX) const
Definition cl_Material.cpp:1006
void set_user_defined_defect(DefectFunc *Function)
Set a user-defined defect function with x, y, z, t dependencies.
Definition cl_Material.cpp:792
real drho_piecewise_dT(const real normJ, const real T, const real normB, const real angleNxB) const
Derivative of piecewise resistivity with respect to T at fixed J, |B|, θ ( T-leg ).
Definition powerlaws.hpp:2209
real jc_eval(const real T, const real normB, const real angleNxB) const
O1 "full-signature policy" helpers: the assembly path always passes the full ( T, normB,...
Definition powerlaws.hpp:84
real dlambdadT_spline(const real T) const
Definition cl_Material.hpp:1849
void set_custom(const MaterialProperty aProperty)
Definition cl_Material.cpp:396
virtual real drhodT_custom(const real T) const
Definition cl_Material.hpp:1969
real drho_piecewise_dB(const real normJ, const real T, const real normB, const real angleNxB) const
Derivative of piecewise resistivity with respect to |B| at fixed J, T, θ
Definition powerlaws.hpp:2058
void read_heating(const string &aLibraryPath, const string &aLabel)
Read a heating function from a plugin library.
Definition cl_Material.cpp:901
real H_const(const real B) const
Definition cl_Material.hpp:2040
real drho_piecewise_dJ(const real normJ, const real T, const real normB, const real angleNxB) const
Derivative of piecewise resistivity with respect to current density magnitude.
Definition powerlaws.hpp:1830
real(Material::*) mFunctiondRhoKohlerdB(const real T, const real normB, const real angle) const
Definition cl_Material.hpp:397
real debye_const(const real T) const
Definition cl_Material.hpp:2201
real cp_spline(const real T) const
Definition cl_Material.hpp:1791
real drho_riva_dJ(const real normJ, const real T, const real normB, const real angleNxB) const
dρ/d|J| of rho_riva: w²·dρ_PL/dJ with w = ρ_n/(ρ_PL+ρ_n)
Definition powerlaws.hpp:2584
virtual real dlambdadB(const real T, const real B, const real beta) const
Definition cl_Material.hpp:1881
real density_const(const real T) const
Definition cl_Material.hpp:1706
real drhodT_finite_difference(const real T) const
Definition cl_Material.hpp:1956
real(Material::*) mFunctiondRhoKohlerdT(const real T, const real normB, const real angle) const
Definition cl_Material.hpp:396
virtual real rho_i(const real T) const
Intrinsic (phonon) electrical resistivity of a metal, ρ = ρ_i(T) + ρ_0.
Definition cl_Material.hpp:2213
real return_zero(const real T) const
Shared binding for derivative channels that are identically zero.
Definition cl_Material.hpp:1771
real dn_eval_dB(const real T, const real normB, const real angleNxB) const
d(n)/d|B|, same routing as djc_eval_dB
Definition powerlaws.hpp:128
real lambda_undefined(const real T) const
Definition cl_Material.cpp:581
virtual void set_bh_curve(const material::BhCurve *aCurve)
Assign a B-H curve to this material.
Definition cl_Material.cpp:678
void(Material::*) mFunctionDMuDH(double, double &, double &) const
Definition cl_Material.hpp:402
void set_dependency(const MaterialProperty aProperty, const MaterialDependency aDependency)
Definition cl_Material.cpp:246
void set_jc_function(const material::JcFunction *aFunction)
Assign a critical current density function.
Definition cl_Material.cpp:684
virtual void set_user_defined_polynomial(const MaterialProperty Property, const std::vector< real > &Coefficients)
Set a polynomial function for a property (for UserDefinedMaterial).
Definition cl_Material.cpp:956
bool have_defect() const
Definition cl_Material.hpp:1634
virtual real rho_custom(const real T) const
Definition cl_Material.cpp:574
real volumetric_heatload(const real x, const real y, const real z, const real time) const
Artificial volumetric heat load [ W/m³ ] from the heating plugin.
Definition cl_Material.hpp:2238
virtual real dlambdadT_custom(const real T) const
Definition cl_Material.cpp:519
void set_have(const MaterialProperty aProperty, const bool aHave=true)
Definition cl_Material.cpp:224
virtual real drhodB(const real T, const real B, const real beta) const
Definition cl_Material.hpp:2014
virtual real mu_bhcurve(const real H, const real T) const
Definition cl_Material.cpp:986
real drho_powerlaw_dB(const real normJ, const real T, const real normB, const real angleNxB) const
Derivative of power-law resistivity with respect to |B| at fixed J, T, θ ( jc = jc(T,...
Definition powerlaws.hpp:2002
virtual real density_custom(const real T) const
Definition cl_Material.hpp:1714
static real piecewise_bezier_sqrt(const real a, const real b, const real c)
Definition powerlaws.hpp:67
virtual real evaluate_derivative_of_polynomial(const MaterialProperty Property, const real T) const
Definition cl_Material.cpp:939
virtual real drhodT_table(const real T, const real normB, const real angleJxB) const
Definition cl_Material.cpp:643
real rho_piecewise(const real normJ) const
Piecewise resistivity for HTS (constant jc and n).
Definition powerlaws.hpp:430
const string & number() const
Empty if the material has no number.
Definition cl_Material.hpp:1592
real(Material::*) mFunctionMu(const real H, const real T) const
Definition cl_Material.hpp:401
virtual real lambda_table(const real T, const real normB, const real angle) const
Definition cl_Material.cpp:671
real djc_eval_dB(const real T, const real normB, const real angleNxB) const
Definition powerlaws.hpp:120
bool riva_rho_pl(const real normJ, const real jc, const real n, const real ec, real &rhoPL) const
Definition powerlaws.hpp:2519
real n_eval(const real T, const real normB, const real angleNxB) const
Definition powerlaws.hpp:104
real jc(const real normB, const real angleNxB, const real T) const
Direct evaluation of the critical current density .
Definition powerlaws.hpp:1023
virtual real rho_i_custom(const real T) const
Definition cl_Material.cpp:601
void set_piecewise(const bool aUsePiecewise)
Definition cl_Material.cpp:807
real djc_eval_dT(const real T, const real normB, const real angleNxB) const
Definition powerlaws.hpp:144
real dn_eval_dT(const real T, const real normB, const real angleNxB) const
d(n)/dT, same routing as djc_eval_dT
Definition powerlaws.hpp:152
real M() const
Molar mass [kg/mol].
Definition cl_Material.hpp:1737
virtual real H_bhcurve(const real B) const
Definition cl_Material.cpp:979
const string & label() const
Definition cl_Material.hpp:1586
void flag(const uint8_t aIndex=0)
Definition cl_Material.hpp:1604
virtual real drhodT_spline(const real T) const
Definition cl_Material.hpp:1981
real Rp02_const(const real T) const
Definition cl_Material.hpp:2177
virtual real drhodbeta(const real T, const real B, const real beta) const
Definition cl_Material.hpp:2023
bool have_heating() const
Definition cl_Material.hpp:1640
virtual void set_user_defined_function(const MaterialProperty Property, const MaterialDependency Dependency, MatFunc1 *Function)
Set a user-defined function with one dependency (for UserDefinedMaterial).
Definition cl_Material.cpp:762
real drho_powerlaw_dT(const real normJ, const real T, const real normB, const real angleNxB) const
Derivative of power-law resistivity with respect to T at fixed J, |B|, θ ( T-leg: jc(T),...
Definition powerlaws.hpp:2151
ResistivityLaw resistivity_law() const
Definition cl_Material.hpp:1658
virtual real rho_table(const real T, const real normB, const real angleJxB) const
Definition cl_Material.cpp:636
virtual real dspline_property(const MaterialProperty aProperty, const real aX) const
Definition cl_Material.cpp:1013
real nu_spline(const real T) const
Definition cl_Material.hpp:2117
void check_riva_n_source() const
Definition cl_Material.cpp:825
virtual real density(const real T=gTroom) const
Density as a function of temperature.
Definition cl_Material.hpp:1697
virtual real drhodB_table(const real T, const real normB, const real angleJxB) const
Definition cl_Material.cpp:650
void unflag(const uint8_t aIndex=0)
Definition cl_Material.hpp:1612
Material & operator=(const Material &)=delete
real debye_spline(const real T) const
Definition cl_Material.hpp:2207
virtual real G(real T=gTroom) const
Shear modulus.
Definition cl_Material.hpp:2125
real dlambdadT_finite_difference(const real T) const
Definition cl_Material.hpp:1836
real constant_property(const MaterialProperty aProperty) const
Definition cl_Material.hpp:1688
virtual real nu_custom(const real T) const
Definition cl_Material.cpp:539
virtual real l(real T) const
Relative length after thermal expansion.
Definition cl_Material.cpp:1045
virtual real dlambdadbeta(const real T, const real B, const real beta) const
Definition cl_Material.hpp:1894
Material & operator=(Material &&)=delete
virtual real rho_kohler(const real T, const real normB, const real angleJxB) const
Definition cl_Material.cpp:608
real(Material::*) mFunctionRhoKohler(const real T, const real normB, const real angle) const
Definition cl_Material.hpp:395
virtual real ddspline_property(const MaterialProperty aProperty, const real aX) const
Definition cl_Material.cpp:1020
real E_const(const real T) const
Definition cl_Material.hpp:2086
virtual void set_table_flags(const bool aFlag)
Definition cl_Material.cpp:1000
virtual real dcpdT_custom(const real T) const
Definition cl_Material.cpp:499
real alpha_spline(const real T) const
Definition cl_Material.hpp:2157
Material(const Material &)=delete
virtual real Rp02(real T=gTroom) const
Yield stress (0.2% offset).
Definition cl_Material.hpp:2167
real nu_const(const real T) const
Definition cl_Material.hpp:2111
real d2cpdT2_spline(const real T) const
Definition cl_Material.hpp:1803
virtual void set_RRR(const real RRR)
RRR = rho( 273 K ) / rho( 0 K ); noble metals only.
Definition cl_Material.cpp:217
real E_spline(const real T) const
Definition cl_Material.hpp:2092
const material::JcFunction * mNFunction
Definition cl_Material.hpp:407
real drho_riva_dT(const real normJ, const real T, const real normB, const real angleNxB) const
dρ/dT of rho_riva: w²·dρ_PL/dT + (1−w)²·dρ_n/dT
Definition powerlaws.hpp:2658
real(Material::*) mFunctiondRhoKohlerdbeta(const real T, const real normB, const real angle) const
Definition cl_Material.hpp:398
real lambda_spline(const real T) const
Definition cl_Material.hpp:1843
virtual real debye_custom(const real T) const
Definition cl_Material.cpp:567
real d2cpdT2_finite_difference(const real T) const
Definition cl_Material.hpp:1784
virtual real E_custom(const real T) const
Definition cl_Material.cpp:525
virtual real mu_custom(const real H, const real T) const
Definition cl_Material.cpp:546
real drho_powerlaw_dJ(const real normJ, const real T, const real normB, const real angleNxB) const
Derivative of power-law resistivity with respect to current density magnitude.
Definition powerlaws.hpp:1251
virtual real cp_custom(const real T) const
Definition cl_Material.cpp:492
real mu_const(const real H, const real T) const
Definition cl_Material.hpp:2054
real(Material::*) mFunctionH(const real B) const
Definition cl_Material.hpp:400
virtual real d2cpdT2_custom(const real T) const
Definition cl_Material.cpp:506
real alpha_const(const real T) const
Definition cl_Material.hpp:2151
virtual real debye(const real T) const
Debye temperature.
Definition cl_Material.hpp:2191
void read_defect(const string &aLibraryPath, const string &aLabel)
Read a defect from the library.
Definition cl_Material.cpp:871
virtual real dlambdadT(const real T=gTroom) const
Definition cl_Material.hpp:1826
void set_n_function(const material::JcFunction *aFunction)
Assign a power law exponent function.
Definition cl_Material.cpp:712
virtual real dcpdT(const real T=gTroom) const
Definition cl_Material.hpp:1756
real alpha_switch_temperature() const
Temperature below which alpha is taken from the Grueneisen branch.
Definition cl_Material.hpp:2227
real ref_density() const
Reference density at reference temperature.
Definition cl_Material.hpp:1730
virtual real mu(const real H, const real T=BELFEM_QUIET_NAN) const
Magnetic permeability.
Definition cl_Material.hpp:2048
virtual real nu(real T=gTroom) const
Poisson's ratio.
Definition cl_Material.hpp:2100
bool use_riva() const
Definition cl_Material.hpp:1652
bool is_flagged(const uint8_t aIndex=0) const
Definition cl_Material.hpp:1620
virtual real alpha(real T=gTroom) const
Thermal expansion coefficient.
Definition cl_Material.hpp:2141
real rho_i_spline(const real T) const
Definition cl_Material.hpp:2219
real rho_riva(const real normJ, const real T, const real normB, const real angleNxB) const
Riva-law resistivity: the superconducting power-law channel in parallel with the normal-state channel...
Definition powerlaws.hpp:2554
virtual real n_custom(const real T) const
Definition cl_Material.cpp:595
virtual real Rp02_custom(const real T) const
Definition cl_Material.cpp:560
real drhodB(const real T, const real B, const real beta) const override
Definition cl_Material_Alloy.hpp:173
real dlambdadT(const real T, const real B, const real beta) const override
Definition cl_Material_Alloy.hpp:213
real lambda(const real T, const real B, const real beta) const override
Thermal conductivity with magnetoresistance.
Definition cl_Material_Alloy.hpp:207
real drhodT(const real T, const real B, const real beta) const override
Definition cl_Material_Alloy.hpp:157
real drhodbeta(const real T, const real B, const real beta) const override
Definition cl_Material_Alloy.hpp:190
real rho(const real T, const real B, const real beta) const override
Electrical resistivity with magnetoresistance (Kohler's rule).
Definition cl_Material_Alloy.hpp:145
B-H curve for ferromagnetic materials.
Definition cl_BhCurve.hpp:61
Base class for critical current density (Jc) and n-value functions.
Definition cl_JcFunction.hpp:135
Definition cl_Material_SplineLookupTable.hpp:25
real l(real T) const override
Relative length after thermal expansion, from integrated alpha spline.
Definition cl_Material_SplineLookupTable.hpp:182
real ddspline_property(const MaterialProperty aProperty, const real aX) const override
Definition cl_Material_SplineLookupTable.hpp:174
void reset_spline(const MaterialProperty aProperty) override
Definition cl_Material_SplineLookupTable.cpp:115
real dspline_property(const MaterialProperty aProperty, const real aX) const override
Definition cl_Material_SplineLookupTable.hpp:166
void create_spline(real(Material::*aFunction)(const real aT) const, const MaterialProperty aProperty, const uint aStartBC, const uint aEndBC, const real adYdX0, const real adYdX1, const real aStep) override
Definition cl_Material_SplineLookupTable.cpp:123
real spline_property(const MaterialProperty aProperty, const real aX) const override
Definition cl_Material_SplineLookupTable.hpp:158
const real nu0
inverse of magnetic constant in (A*m)/(V*s)
Definition constants.hpp:80
USER GUIDES:
Definition cl_Capacitor.cpp:16
constexpr size_t gNumNonConstantMaterialProperties
Number of non-constant material properties.
Definition cl_Material.hpp:202
ResistivityLaw
E-J law used for a superconductor's resistivity.
Definition cl_Material.hpp:224
@ PowerLaw
Definition cl_Material.hpp:225
@ Riva
Definition cl_Material.hpp:227
@ Piecewise
Definition cl_Material.hpp:226
unit get_unit(const MaterialProperty aProperty)
Definition cl_Material.cpp:57
std::array< real, 7 > unit
Definition typedefs.hpp:71
MaterialDependency
Definition cl_Material.hpp:124
@ UNDEFINED
Definition cl_Material.hpp:133
@ angleBxJ
Definition cl_Material.hpp:127
@ Jc
Definition cl_Material.hpp:131
@ UserDefined
Definition cl_SourceFunction.hpp:66
constexpr real gTroom
Definition typedefs.hpp:63
unsigned int uint
Definition typedefs.hpp:30
constexpr real gTAlphaSwitchMax
Upper bound for the thermal expansion split temperature [K].
Definition cl_Material.hpp:47
real MatFunc1(const Material *, const real)
Definition cl_Material.hpp:232
int proc_t
Definition commtypes.hpp:29
constexpr real gDefaultEcrit
Critical electric field of the power law, in V/m, when none is given.
Definition cl_Material.hpp:55
real MatFunc3(const Material *, const real, const real, const real)
Definition cl_Material.hpp:234
MaterialProperty
All material properties that can be defined.
Definition cl_Material.hpp:153
@ nu
Definition cl_Material.hpp:156
@ gamma
Definition cl_Material.hpp:174
@ A_electron_magnon
Definition cl_Material.hpp:189
@ T_max
Definition cl_Material.hpp:171
@ UNDEFINED
Definition cl_Material.hpp:194
@ rho_0
Definition cl_Material.hpp:183
@ ref_density
Definition cl_Material.hpp:172
@ kohler_trans
Definition cl_Material.hpp:165
@ alpha
Definition cl_Material.hpp:161
@ ec
Definition cl_Material.hpp:185
@ A_bloch_gruen
Definition cl_Material.hpp:180
@ density
Definition cl_Material.hpp:154
@ E
Definition cl_Material.hpp:155
@ debye0K
Definition cl_Material.hpp:177
@ density_correction
Definition cl_Material.hpp:192
@ Tcurie
Definition cl_Material.hpp:188
@ M
Definition cl_Material.hpp:168
@ q
Definition cl_Material.hpp:176
@ A_spin_disorder
Definition cl_Material.hpp:190
@ rho
Definition cl_Material.hpp:160
@ mu
Definition cl_Material.hpp:159
@ lambda
Definition cl_Material.hpp:158
@ rho0_pure
Definition cl_Material.hpp:193
@ debye
Definition cl_Material.hpp:163
@ cp
Definition cl_Material.hpp:157
@ rho_i
Definition cl_Material.hpp:164
@ rho_i_ref
Definition cl_Material.hpp:178
@ Rp02
Definition cl_Material.hpp:162
@ jc
Definition cl_Material.hpp:186
@ layer_thickness
Definition cl_Material.hpp:184
@ kohler_long
Definition cl_Material.hpp:166
@ T_ref_rho_i
Definition cl_Material.hpp:179
@ Gamma
Definition cl_Material.hpp:169
@ T_ref_density
Definition cl_Material.hpp:173
@ n_bloch_gruen
Definition cl_Material.hpp:181
@ RRR
Definition cl_Material.hpp:182
@ grueneisen
Definition cl_Material.hpp:191
@ T_crit
Definition cl_Material.hpp:167
real HeatFunc(const real, const real, const real, const real)
Definition cl_Material.hpp:236
uint32_t index_t
Definition typedefs.hpp:52
real MatFunc2(const Material *, const real, const real)
Definition cl_Material.hpp:233
constexpr size_t gNumMaterialProperties
Definition cl_Material.hpp:204
constexpr real gFinDiffDeltaT
Definition typedefs.hpp:66
real DefectFunc(const real, const real, const real, const real)
Definition cl_Material.hpp:235
double real
Definition typedefs.hpp:36
Bitset< static_cast< size_t >(MaterialDependency::UNDEFINED) > MaterialDependencyBitset
Definition cl_Material.hpp:136
MaterialType
Material classification based on physical behavior.
Definition cl_Material.hpp:113
@ HTS
Definition cl_Material.hpp:116
@ LookupAlloy
Definition cl_Material.hpp:118
@ PureMetal
Definition cl_Material.hpp:117
@ NonMetal
Definition cl_Material.hpp:120
@ CompositeAlloy
Definition cl_Material.hpp:119
string to_string(const DomainType aDomainType)
Definition en_DomainType.cpp:21
Inline E–J resistivity models for HTS materials and their Jacobians.
#define BELFEM_QUIET_NAN
Definition typedefs.hpp:86