BELFEM 0.9.4
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
cl_Material.hpp
Go to the documentation of this file.
1/*
2 * BELFEM -- The Berkeley Lab Finite Element Framework
3 * Copyright (c) 2026, The Regents of the University of California,
4 * through Lawrence Berkeley National Laboratory (subject to receipt of any required
5 * approvals from the U.S. Dept. of Energy). All rights reserved.
6 *
7 * Developers: Christian Messe, Gregory Giard
8 *
9 * See the top-level LICENSE file for the complete license and disclaimer.
10 */
11
12#ifndef BELFEM_CL_MATERIAL_HPP
13#define BELFEM_CL_MATERIAL_HPP
14#include "globals.hpp"
15
16#include <cmath>
17
18#include "typedefs.hpp"
19#include "constants.hpp"
20#include "assert.hpp"
21#include "cl_Bitset.hpp"
22#include "cl_Cell.hpp"
23
24// note: NEVER include cl_Vector.hpp or cl_Matrix.hpp here, or any class that uses it.
25// Doing so would break the API for the user defined materials.
26
27namespace belfem
28{
47 constexpr real gTAlphaSwitchMax = 273.15 ;
48
55 constexpr real gDefaultEcrit = 1e-4 ;
56}
57
58//#include "cl_Mesh.hpp"
59
60#if defined(__clang__)
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"
66
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"
72
73#elif defined(BELFEM_INTEL)
74 // Intel compiler diagnostics
75#pragma warning(push)
76 // disable format warnings
77#pragma warning(disable: 1011)
78 // disable unused variable warnings
79#pragma warning(disable: 177)
80 // keep your original one
81#pragma warning(disable: 1595)
82
83#endif
84
85// Forward declaration (full definition only needed in implementation files)
86
87#include "cl_JcFunction.hpp"
88
89namespace belfem
90{
91//------------------------------------------------------------------------------
92 namespace material
93 {
94 class BhCurve ;
95 class SplineLookupTable ;
96 }
97
98//------------------------------------------------------------------------------
99
122
124 {
125 T = 0, // temperature [K]
126 normB = 1, // magnitude of in-plane magnetic field [T] (HTS, for lambda and rho)
127 angleBxJ = 2, // angle between B and j [rad]
128 angleNxB = 3, // angle between surface normal and B [rad]
129 normH = 4, // magnetic field strength [A/m] (for mu in ferromagnetic materials)
130 normJ = 5,
131 Jc = 6,
132 rho = 7,
133 UNDEFINED = 8
134 };
135
137
153 {
154 density = 0, // density [kg/m³]
155 E = 1, // Young's modulus [Pa]
156 nu = 2, // Poisson's ratio [-]
157 cp = 3, // specific heat capacity [J/(kg·K)]
158 lambda = 4, // thermal conductivity [W/(m·K)]
159 mu = 5, // magnetic permeability [H/m], defined as ∂B/∂H
160 rho = 6, // electric resistivity [Ω·m]
161 alpha = 7, // thermal expansion coefficient [1/K], defined as (1/l)·∂l/∂T, not (1/l)·Δl/ΔT!
162 Rp02 = 8, // yield stress [Pa]
163 debye = 9, // Debye temperature [K]
164 rho_i = 10, // inner resistivity of noble metal [Ω·m]
165 kohler_trans = 11, // Kohler parameter for transverse magnetoresistance [-]
166 kohler_long = 12, // Kohler parameter for longitudinal magnetoresistance [-]
167 T_crit = 13, // critical temperature [K]
168 M = 14, // molar mass [kg/mol]
169 Gamma = 15, // impurity parameter [-]
170 R = 16, // specific gas constant [J/(kg·K)]
171 T_max = 17, // maximum temperature [K]
172 ref_density = 18, // reference density [kg/m³]
173 T_ref_density = 19, // temperature at reference density [K]
174 gamma = 20, // linear Debye parameter [J/(kg·K²)], cv = γ·T + β·T³ = ∂cp/∂T at T=0
175 beta = 21, // cubic Debye parameter [J/(kg·K⁴)], cv = γ·T + β·T³
176 q = 22, // number of atoms per molecule [-] (default: 1)
177 debye0K = 23, // Debye temperature at 0 K [K]
178 rho_i_ref = 24, // reference inner resistivity [Ω·m]
179 T_ref_rho_i = 25, // temperature at reference inner resistivity [K]
180 A_bloch_gruen = 26, // A-parameter for Bloch-Grüneisen law [-]
181 n_bloch_gruen = 27, // n-parameter for Bloch-Grüneisen law [-]
182 RRR = 28, // residual resistivity ratio [-]
183 rho_0 = 29, // residual resistivity [Ω·m]
184 layer_thickness = 30, // characteristic length, e.g., layer thickness [m]
185 ec = 31, // critical electric field [V/m]
186 jc = 32, // critical current density [A/m²]
187 n = 33, // exponent for power law [-]
188 Tcurie = 34, // Curie temperature [K]
189 A_electron_magnon = 35, // electron-magnon scattering parameter [ Ω · m / K² ]
190 A_spin_disorder = 36, // spin disorder amplitude [ Ω · m ]
191 grueneisen = 37, // Grüneisen parameter
192 density_correction = 38, // density scaling factor, to correct solder thickness [-]
193 rho0_pure = 39, // resistivity from TPCR for pure metals
194 UNDEFINED = 40
195 };
196
202 constexpr size_t gNumNonConstantMaterialProperties = static_cast< size_t >( MaterialProperty::T_crit ) ;
203
204 constexpr size_t gNumMaterialProperties = static_cast< size_t >( MaterialProperty::UNDEFINED ) ;
205
206 string
207 to_string( const MaterialProperty aProperty ) ;
208
209 unit
210 get_unit( const MaterialProperty aProperty ) ;
211
223 enum class ResistivityLaw
224 {
228 };
229
230 class Material ;
231
232 typedef real ( MatFunc1 )( const Material * , const real ) ; // T
233 typedef real ( MatFunc2 )( const Material *, const real, const real ) ;
234 typedef real ( MatFunc3 )( const Material *, const real, const real, const real ) ;
235 typedef real ( DefectFunc )( const real, const real, const real, const real ) ;
236 typedef real ( HeatFunc )( const real, const real, const real, const real ) ;
237
270 {
271 const proc_t mCommRank ;
272
273 const MaterialType mType ;
274
275 const bool mIsIsotropic ; // Flag for isotropic properties (default: true)
276
277 string mLabel ; // Material label (e.g., "Copper", "YBCO")
278
279 string mNumber = "" ; // Material number/identifier if it exists
280
281 // bitwise flags for this vertex
282 // 1: used by kernel
283 // 7: reserved for factory
284 uint8_t mFlags = 0;
285
286 Bitset< gNumMaterialProperties > mHaveProperty ; // Flags which properties are implemented
287
288 Cell< real > mConstantProperties ; // Storage for constant property values
289
290 Cell< MaterialDependencyBitset * > mPropertyDependencies ; // Tracks dependencies for each property
291
292 //Piecewise resistivity parameters
293 real mNff = 3.0 ;
294 real mD = 2.5 ;
295
297 real mRhoMin = 0.0 ;
298
303 real mTAlphaSwitch = BELFEM_QUIET_NAN ;
304
308 ResistivityLaw mResistivityLaw = ResistivityLaw::PowerLaw ;
309
310 // Function pointers for property evaluation (dispatched based on dependencies)
311 real ( Material::*mFunctionDensity ) ( const real T ) const = nullptr ;
312
313 real ( Material::*mFunctionCp ) ( const real T ) const = nullptr ;
314 // not null: an unrouted lambda() or dlambdadT() must fail in release
315 // builds too
316 real ( Material::*mFunctionLambda ) ( const real T ) const = & Material::lambda_undefined ;
317
318 real ( Material::*mFunctiondCpdT ) ( const real T ) const = nullptr ;
319 real ( Material::*mFunctiondLambdadT ) ( const real T ) const = & Material::lambda_undefined ;
320
321 real ( Material::*mFunctiond2CpdT2 ) ( const real T ) const = nullptr ;
322
323 real ( Material::*mFunctionRho ) ( const real T ) const = nullptr ;
324 real ( Material::*mFunctionRhoI ) ( const real T ) const = nullptr ;
325 real ( Material::*mFunctiondRhodT ) ( const real T ) const = nullptr ;
326
327 real ( Material::*mFunctionE ) ( const real T ) const = nullptr ;
328 real ( Material::*mFunctionNu ) ( const real T ) const = nullptr ;
329
330 real ( Material::*mFunctionAlpha ) ( const real T ) const = nullptr ;
331
332 real ( Material::*mFunctionRp02 ) ( const real T ) const = nullptr ;
333 real ( Material::*mFunctionDebye ) ( const real T ) const = nullptr ;
334
335 DefectFunc * mDefectFunction = nullptr ;
336 HeatFunc * mHeatFunction = nullptr ;
337
341 void * mDefectHandle = nullptr ;
342
344 void * mHeatHandle = nullptr ;
345
346 // we don't want all materials to access private functions
347 // but for this one, it's OK
349
350 protected:
351
361 real
362 jc_eval( const real T, const real normB, const real angleNxB ) const ;
363
367 real
368 djc_eval_dB( const real T, const real normB, const real angleNxB ) const ;
369
371 real
372 dn_eval_dB( const real T, const real normB, const real angleNxB ) const ;
373
378 real
379 djc_eval_dT( const real T, const real normB, const real angleNxB ) const ;
380
382 real
383 dn_eval_dT( const real T, const real normB, const real angleNxB ) const ;
384
385 real
386 n_eval( const real T, const real normB, const real angleNxB ) const ;
387
392 void
393 check_riva_n_source() const ;
394
395 real ( Material::*mFunctionRhoKohler ) ( const real T, const real normB, const real angle ) const = nullptr ;
396 real ( Material::*mFunctiondRhoKohlerdT ) ( const real T, const real normB, const real angle ) const = nullptr ;
397 real ( Material::*mFunctiondRhoKohlerdB ) ( const real T, const real normB, const real angle ) const = nullptr ;
398 real ( Material::*mFunctiondRhoKohlerdbeta ) ( const real T, const real normB, const real angle ) const = nullptr ;
399
400 real ( Material::*mFunctionH ) ( const real B ) const = nullptr ;
401 real ( Material::*mFunctionMu ) ( const real H, const real T ) const = nullptr ;
402 void ( Material::*mFunctionDMuDH )( double, double&, double& ) const = nullptr ;
403
404 // Function objects (material owns and deletes these)
405
408
409//------------------------------------------------------------------------------
410 public:
411//------------------------------------------------------------------------------
412
413 Material( const MaterialType aType, const bool aIsIsotropic=true ) ;
414
416 virtual ~Material() ;
417
418 // Non-copyable and non-movable (Rule of Five)
419 Material( const Material & ) = delete ;
420 Material & operator=( const Material & ) = delete ;
421 Material( Material && ) = delete ;
422 Material & operator=( Material && ) = delete ;
423
424//------------------------------------------------------------------------------
425// Property Checks
426//------------------------------------------------------------------------------
427
428 bool
429 have( const MaterialProperty aProperty ) const ;
430
431 bool
432 have_defect() const ;
433
434 bool
435 have_heating() const ;
436
437 bool
438 use_piecewise() const ;
439
440 bool
441 depends( const MaterialProperty aProperty, const MaterialDependency aDependency ) const ;
442
444 dependencies( const MaterialProperty aProperty ) const ;
445
446 bool
447 is_isotropic() const ;
448
450 type() const ;
451
452//------------------------------------------------------------------------------
453// Parameters and Tools
454//------------------------------------------------------------------------------
455
456 const string &
457 label() const ;
458
460 const string &
461 number() const ;
462
472 void
473 load_bh_curve( const material::BhCurve * aCurve );
474
475 void
476 flag( const uint8_t aIndex = 0 );
477
478 void
479 unflag( const uint8_t aIndex = 0 );
480
481 bool
482 is_flagged( const uint8_t aIndex = 0 ) const ;
483
484 bool
485 is_constant( const MaterialProperty aProperty ) const ;
486
488 virtual void
489 set_RRR( const real RRR ) ;
490
491//------------------------------------------------------------------------------
492// Mass and Weight
493//------------------------------------------------------------------------------
494
503 virtual real
504 density( const real T=gTroom ) const ;
505
512 real
513 ref_density() const ;
514
516 real
517 M() const ;
518
519//------------------------------------------------------------------------------
520// Thermal Properties
521//------------------------------------------------------------------------------
522
528 virtual real
529 cp( const real T=gTroom ) const ;
530
531 virtual real
532 dcpdT( const real T=gTroom ) const ;
533
534 virtual real
535 d2cpdT2( const real T=gTroom ) const ;
536
542 virtual real
543 lambda( const real T=gTroom ) const ;
544
545 virtual real
546 dlambdadT( const real T=gTroom ) const ;
547
560 virtual real
561 lambda( const real T, const real B, const real beta ) const ;
562
563 virtual real
564 dlambdadT( const real T, const real B, const real beta ) const ;
565
566 virtual real
567 dlambdadB( const real T, const real B, const real beta ) const ;
568
569 virtual real
570 dlambdadbeta( const real T, const real B, const real beta ) const ;
571
580 virtual real
581 lambda( const real T, const real B_par, const real B_perp, const real J ) const ;
582
583 virtual real
584 dlambdadT( const real T, const real B_par, const real B_perp, const real J ) const ;
585
586//------------------------------------------------------------------------------
587// Electric Properties
588//------------------------------------------------------------------------------
589
597 virtual real
598 rho( const real T ) const ;
599
600 virtual real
601 drhodT( const real T ) const ;
602
615 virtual real
616 rho( const real T, const real B, const real beta ) const ;
617
618 virtual real
619 drhodT( const real T, const real B, const real beta ) const ;
620
621 virtual real
622 drhodB( const real T, const real B, const real beta ) const ;
623
624 virtual real
625 drhodbeta( const real T, const real B, const real beta ) const ;
626
638 real
639 rho_powerlaw( const real normJ ) const ;
640
641 real
642 rho_powerlaw( const real normJ, const real x, const real y, const real z, const real t ) const ;
643
654 real
655 rho_powerlaw( const real normJ, real normB, const real angleNxB ) const ;
656
657 real
658 rho_powerlaw( const real normJ, real normB, const real angleNxB, const real x, const real y, const real z, const real t ) const ;
659
671 real
672 rho_powerlaw( const real normJ, const real T, real normB, const real angleNxB ) const ;
673
674 real
675 rho_powerlaw( const real normJ, const real T, real normB, const real angleNxB, const real x, const real y, const real z, const real t ) const ;
676
677 //Temperature dependent only cases (custom)
678 real
679 rho_powerlaw( const real normJ, const real T ) const ;
680
681 real
682 rho_powerlaw( const real normJ, const real T, const real x, const real y, const real z, const real t ) const ;
683
692 real
693 rho_piecewise( const real normJ ) const ;
694
695 real
696 rho_piecewise( const real normJ, const real x, const real y, const real z, const real t ) const ;
697
706 real
707 rho_piecewise( const real normJ, real normB, const real angleNxB ) const ;
708
709 real
710 rho_piecewise( const real normJ, real normB, const real angleNxB, const real x, const real y, const real z, const real t ) const ;
711
721 real
722 rho_piecewise( const real normJ, const real T, real normB, const real angleNxB ) const ;
723
724 real
725 rho_piecewise( const real normJ, const real T, real normB, const real angleNxB, const real x, const real y, const real z, const real t ) const ;
726
727 //Temperature dependent only cases (custom)
728 real
729 rho_piecewise( const real normJ, const real T ) const ;
730
731 real
732 rho_piecewise( const real normJ, const real T, const real x, const real y, const real z, const real t ) const ;
733
749 real
750 rho_riva( const real normJ, const real T, const real normB, const real angleNxB ) const ;
751
753 real
754 rho_riva( const real normJ, const real T, const real normB, const real angleNxB, const real x, const real y, const real z, const real t ) const ;
755
757 real
758 drho_riva_dJ( const real normJ, const real T, const real normB, const real angleNxB ) const ;
759
760 real
761 drho_riva_dJ( const real normJ, const real T, const real normB, const real angleNxB, const real x, const real y, const real z, const real t ) const ;
762
764 real
765 drho_riva_dB( const real normJ, const real T, const real normB, const real angleNxB ) const ;
766
767 real
768 drho_riva_dB( const real normJ, const real T, const real normB, const real angleNxB, const real x, const real y, const real z, const real t ) const ;
769
771 real
772 drho_riva_dT( const real normJ, const real T, const real normB, const real angleNxB ) const ;
773
774 real
775 drho_riva_dT( const real normJ, const real T, const real normB, const real angleNxB, const real x, const real y, const real z, const real t ) const ;
776
777 real
778 n( const real normB, const real angleNxB, const real T ) const ;
779
780 real
781 n( const real normB, const real angleNxB ) const ;
782
783 real
784 jc( const real normB, const real angleNxB, const real T ) const ;
785
786 real
787 jc( const real normB, const real angleNxB ) const ;
788
789 //Case of jc with user-defined defect
790 real
791 jc( const real normB, const real angleNxB, const real T, const real x, const real y, const real z, const real t ) const ;
792
793 real
794 jc( const real normB, const real angleNxB, const real x, const real y, const real z, const real t ) const ;
795
806 real
807 drho_powerlaw_dJ( const real normJ, const real T, const real normB, const real angleNxB ) const ;
808
809 real
810 drho_powerlaw_dJ( const real normJ, const real T, const real normB, const real angleNxB, const real x, const real y, const real z, const real t ) const ;
811
812 // Overloads matching rho_powerlaw signatures
813 real
814 drho_powerlaw_dJ( const real normJ ) const ;
815
816 real
817 drho_powerlaw_dJ( const real normJ, const real x, const real y, const real z, const real t ) const ;
818
819 real
820 drho_powerlaw_dJ( const real normJ, const real T ) const ;
821
822 real
823 drho_powerlaw_dJ( const real normJ, const real T, const real x, const real y, const real z, const real t ) const ;
824
825 real
826 drho_powerlaw_dJ( const real normJ, const real normB, const real angleNxB ) const ;
827
828 real
829 drho_powerlaw_dJ( const real normJ, const real normB, const real angleNxB, const real x, const real y, const real z, const real t ) const ;
830
841 real
842 drho_piecewise_dJ( const real normJ, const real T, const real normB, const real angleNxB ) const ;
843
844 real
845 drho_piecewise_dJ( const real normJ, const real T, const real normB, const real angleNxB, const real x, const real y, const real z, const real t ) const ;
846
858 real
859 drho_powerlaw_dB( const real normJ, const real T, const real normB, const real angleNxB ) const ;
860
862 real
863 drho_powerlaw_dB( const real normJ, const real T, const real normB, const real angleNxB, const real x, const real y, const real z, const real t ) const ;
864
878 real
879 drho_powerlaw_dT( const real normJ, const real T, const real normB, const real angleNxB ) const ;
880
882 real
883 drho_powerlaw_dT( const real normJ, const real T, const real normB, const real angleNxB, const real x, const real y, const real z, const real t ) const ;
884
902 real
903 drho_piecewise_dB( const real normJ, const real T, const real normB, const real angleNxB ) const ;
904
906 real
907 drho_piecewise_dB( const real normJ, const real T, const real normB, const real angleNxB, const real x, const real y, const real z, const real t ) const ;
908
924 real
925 drho_piecewise_dT( const real normJ, const real T, const real normB, const real angleNxB ) const ;
926
928 real
929 drho_piecewise_dT( const real normJ, const real T, const real normB, const real angleNxB, const real x, const real y, const real z, const real t ) const ;
930
931 // Overloads matching rho_piecewise signatures
932 real
933 drho_piecewise_dJ( const real normJ ) const ;
934
935 real
936 drho_piecewise_dJ( const real normJ, const real x, const real y, const real z, const real t ) const ;
937
938 real
939 drho_piecewise_dJ( const real normJ, const real T ) const ;
940
941 real
942 drho_piecewise_dJ( const real normJ, const real T, const real x, const real y, const real z, const real t ) const ;
943
944 real
945 drho_piecewise_dJ( const real normJ, const real normB, const real angleNxB ) const ;
946
947 real
948 drho_piecewise_dJ( const real normJ, const real normB, const real angleNxB, const real x, const real y, const real z, const real t ) const ;
949
955 virtual real
956 rho_i( const real T ) const ;
957
958//------------------------------------------------------------------------------
959// Magnetic Properties
960//------------------------------------------------------------------------------
961
967 virtual real
968 H( const real B ) const ;
969
976 virtual real
977 mu( const real H, const real T=BELFEM_QUIET_NAN ) const ;
978
985 virtual void
986 dmudH( const real H, real & mu, real & dmudH ) const ;
987
988//------------------------------------------------------------------------------
989// Mechanical Properties
990//------------------------------------------------------------------------------
991
997 virtual real
998 E( real T=gTroom ) const ;
999
1005 virtual real
1006 nu( real T=gTroom ) const ;
1007
1013 virtual real
1014 G( real T=gTroom ) const ;
1015
1021 virtual real
1022 K( real T=gTroom ) const ;
1023
1031 virtual real
1032 alpha( real T=gTroom ) const ;
1033
1039 virtual real
1040 l( real T ) const ;
1041
1047 virtual real
1048 Rp02( real T=gTroom ) const ;
1049
1050//------------------------------------------------------------------------------
1051// Other Properties
1052//------------------------------------------------------------------------------
1053
1059 virtual real
1060 debye( const real T ) const ;
1061
1071 virtual void
1072 set_bh_curve( const material::BhCurve * aCurve );
1073
1080 void
1081 set_jc_function( const material::JcFunction * aFunction );
1082
1089 void
1090 set_n_function( const material::JcFunction * aFunction );
1091
1092 void
1093 set_piecewise( const bool aUsePiecewise );
1094
1095 void
1096 set_resistivity_law( const ResistivityLaw aLaw );
1097
1099 resistivity_law() const ;
1100
1101 bool
1102 use_riva() const ;
1103//------------------------------------------------------------------------------
1104// API for user defined functions
1105//------------------------------------------------------------------------------
1106
1120 virtual void
1122 const MaterialProperty Property,
1123 const MaterialDependency Dependency,
1124 MatFunc1 * Function ) ;
1125
1139 virtual void
1141 const MaterialProperty Property,
1142 const MaterialDependency Dependency1,
1143 const MaterialDependency Dependency2,
1144 MatFunc2 * Function ) ;
1145
1160 virtual void
1162 const MaterialProperty Property,
1163 const MaterialDependency Dependency1,
1164 const MaterialDependency Dependency2,
1165 const MaterialDependency Dependency3,
1166 MatFunc3 * Function ) ;
1167
1175 void
1176 set_user_defined_defect( DefectFunc * Function ) ;
1177
1187 void
1188 read_defect( const string & aLibraryPath,
1189 const string & aLabel ) ;
1190
1197 void
1198 set_user_defined_heating( HeatFunc * Function ) ;
1199
1210 void
1211 read_heating( const string & aLibraryPath,
1212 const string & aLabel ) ;
1213
1226 virtual real
1228 const MaterialProperty Property,
1229 const real T ) const ;
1230
1231 virtual real
1233 const MaterialProperty Property,
1234 const real T ) const ;
1235
1249 virtual void
1251 const MaterialProperty Property,
1252 const std::vector< real > & Coefficients ) ;
1253
1254 virtual void
1256 const MaterialProperty Property,
1257 const Cell< real > & Coefficients ) ;
1258
1272
1276 void
1277 set_label( const string & aLabel ) ;
1278
1279 void
1280 set_number( const string & aNumber ) ;
1281
1282 void
1283 set_have( const MaterialProperty aProperty, const bool aHave=true ) ;
1284
1285 void
1286 reset_dependencies( const MaterialProperty aProperty );
1287
1288 void
1289 set_dependency( const MaterialProperty aProperty, const MaterialDependency aDependency ) ;
1290
1291 void
1292 set_constant( const MaterialProperty aProperty, const real aValue ) ;
1293
1294 void
1295 set_custom( const MaterialProperty aProperty ) ;
1296
1297 real
1298 constant_property( const MaterialProperty aProperty ) const ;
1299
1300 virtual real
1301 spline_property( const MaterialProperty aProperty, const real aX ) const ;
1302
1303 virtual real
1304 dspline_property( const MaterialProperty aProperty, const real aX ) const ;
1305
1306 virtual real
1307 ddspline_property( const MaterialProperty aProperty, const real aX ) const ;
1308
1309 virtual void
1310 set_table_flags( const bool aFlag );
1311
1312 virtual real
1313 jc_custom( const real T ) const ;
1314
1315 virtual real
1316 n_custom( const real T ) const ;
1317
1321 real
1322 volumetric_heatload( const real x, const real y, const real z, const real time ) const ;
1323
1324//------------------------------------------------------------------------------
1325 protected:
1326//------------------------------------------------------------------------------
1327
1331 real
1332 n_eval_raw( const real T, const real normB, const real angleNxB ) const ;
1333
1337 bool
1338 riva_rho_pl( const real normJ, const real jc, const real n, const real ec, real & rhoPL ) const ;
1339
1344 static real
1345 piecewise_bezier_sqrt( const real a, const real b, const real c ) ;
1346
1347//------------------------------------------------------------------------------
1361
1367 void
1368 create_spline( const MaterialProperty aProperty,
1369 const real adYdX0=BELFEM_QUIET_NAN,
1370 const real adYdX1=BELFEM_QUIET_NAN,
1371 const real aStep=4.0 ) ;
1372
1381 real
1382 alpha_switch_temperature() const ;
1383
1384 real
1385 density_const( const real T ) const ;
1386
1387 virtual real
1388 density_custom( const real T ) const ;
1389
1397 real
1398 return_zero( const real T ) const ;
1399
1400 real
1401 cp_const( const real T ) const ;
1402
1403 real
1404 dcpdT_finite_difference( const real T ) const ;
1405
1406 real
1407 d2cpdT2_finite_difference( const real T ) const ;
1408
1409 real
1410 cp_spline( const real T ) const ;
1411
1412 real
1413 dcpdT_spline( const real T ) const ;
1414
1415 real
1416 d2cpdT2_spline( const real T ) const ;
1417
1418 virtual real
1419 cp_custom( const real T ) const ;
1420
1421 virtual real
1422 dcpdT_custom( const real T ) const ;
1423
1424 virtual real
1425 d2cpdT2_custom( const real T ) const ;
1426
1427 real
1428 lambda_const( const real T ) const ;
1429
1430 real
1431 lambda_undefined( const real T ) const ;
1432
1433 real
1434 dlambdadT_finite_difference( const real T ) const ;
1435
1436 real
1437 lambda_spline( const real T ) const ;
1438
1439 real
1440 dlambdadT_spline( const real T ) const ;
1441
1442 virtual real
1443 lambda_custom( const real T ) const ;
1444
1445 virtual real
1446 dlambdadT_custom( const real T ) const ;
1447
1448 real
1449 drhodT_finite_difference( const real T ) const ;
1450
1451 real
1452 rho_const( const real T ) const ;
1453
1454 virtual real
1455 rho_custom( const real T ) const ;
1456
1457 virtual real
1458 drhodT_custom( const real T ) const ;
1459
1460 virtual real
1461 rho_spline( const real T ) const ;
1462
1463 virtual real
1464 drhodT_spline( const real T ) const ;
1465
1466 virtual real
1467 rho_kohler( const real T, const real normB, const real angleJxB ) const ;
1468
1469 virtual real
1470 drhodT_kohler( const real T, const real normB, const real angleJxB ) const ;
1471
1472 virtual real
1473 drhodB_kohler( const real T, const real normB, const real angleJxB ) const ;
1474
1475 virtual real
1476 drhodbeta_kohler( const real T, const real normB, const real angleJxB ) const ;
1477
1478 virtual real
1479 rho_table( const real T, const real normB, const real angleJxB ) const ;
1480
1481 virtual real
1482 drhodT_table( const real T, const real normB, const real angleJxB ) const ;
1483
1484 virtual real
1485 drhodB_table( const real T, const real normB, const real angleJxB ) const ;
1486
1487 virtual real
1488 drhodbeta_table( const real T, const real normB, const real angleJxB ) const ;
1489
1490 virtual real
1491 lambda_custom( const real T, const real normB, const real angle ) const ;
1492
1493 virtual real
1494 lambda_table( const real T, const real normB, const real angle ) const ;
1495
1496 real
1497 H_const( const real B ) const ;
1498
1499 virtual real
1500 H_bhcurve( const real B ) const ;
1501
1502 real
1503 mu_const( const real H, const real T ) const ;
1504
1505 virtual real
1506 mu_bhcurve( const real H, const real T ) const ;
1507
1508 virtual real
1509 mu_custom( const real H, const real T ) const ;
1510
1511 void
1512 dmudH_const( const real H, real & mu, real & dmudH ) const ;
1513
1514 virtual void
1515 dmudH_bhcurve( const real H, real & mu, real & dmudH ) const ;
1516
1517 real
1518 E_const( const real T ) const ;
1519
1520 real
1521 E_spline( const real T) const ;
1522
1523 virtual real
1524 E_custom( const real T ) const ;
1525
1526 virtual real
1527 dEdT_custom( const real T ) const ;
1528
1529 real
1530 nu_const( const real T ) const ;
1531
1532 real
1533 nu_spline( const real T ) const ;
1534
1535 virtual real
1536 nu_custom( const real T ) const ;
1537
1538 real
1539 alpha_const( const real T ) const ;
1540
1541 real
1542 alpha_spline( const real T ) const ;
1543
1544 virtual real
1545 alpha_custom( const real T ) const ;
1546
1547 real
1548 Rp02_const( const real T ) const ;
1549
1550 real
1551 Rp02_spline( const real T ) const ;
1552
1553 virtual real
1554 Rp02_custom( const real T ) const ;
1555
1556 real
1557 debye_const( const real T ) const ;
1558
1559 real
1560 debye_spline( const real T ) const ;
1561
1562 virtual real
1563 debye_custom( const real T ) const ;
1564
1565 virtual real
1566 rho_i_custom( const real T ) const ;
1567
1568 real
1569 rho_i_spline( const real T ) const ;
1570
1571 virtual void
1572 reset_spline( const MaterialProperty aProperty ) ;
1573
1574 virtual void
1575 create_spline( real (Material::*aFunction)(const real aT) const,
1576 const MaterialProperty aProperty,
1577 const uint aStartBC,
1578 const uint aEndBC,
1579 const real adYdX0=BELFEM_QUIET_NAN,
1580 const real adYdX1=BELFEM_QUIET_NAN,
1581 const real aStep=4.0 ) ;
1582
1583 };
1584
1585 inline const string &
1587 {
1588 return mLabel ;
1589 }
1590
1591 inline const string &
1593 {
1594 return mNumber ;
1595 }
1596
1597 inline MaterialType
1599 {
1600 return mType ;
1601 }
1602
1603 inline void
1604 Material::flag( const uint8_t aIndex )
1605 {
1606 BELFEM_ASSERT( aIndex < 8, "Flag index %u out of bounds (must be < 8)",
1607 ( unsigned int ) aIndex );
1608 mFlags |= ( 1 << aIndex );
1609 }
1610
1611 inline void
1612 Material::unflag( const uint8_t aIndex )
1613 {
1614 BELFEM_ASSERT( aIndex < 8, "Flag index %u out of bounds (must be < 8)",
1615 ( unsigned int ) aIndex );
1616 mFlags &= ~( 1 << aIndex );
1617 }
1618
1619 inline bool
1620 Material::is_flagged( const uint8_t aIndex ) const
1621 {
1622 BELFEM_ASSERT( aIndex < 8, "Flag index %u out of bounds (must be < 8)",
1623 ( unsigned int ) aIndex );
1624 return mFlags & ( 1 << aIndex );
1625 }
1626
1627 inline bool
1628 Material::have( const MaterialProperty aProperty ) const
1629 {
1630 return mHaveProperty.test( static_cast< size_t >( aProperty ) ) ;
1631 }
1632
1633 inline bool
1635 {
1636 return mDefectFunction != nullptr ;
1637 }
1638
1639 inline bool
1641 {
1642 return mHeatFunction != nullptr ;
1643 }
1644
1645 inline bool
1647 {
1648 return mResistivityLaw == ResistivityLaw::Piecewise ;
1649 }
1650
1651 inline bool
1653 {
1654 return mResistivityLaw == ResistivityLaw::Riva ;
1655 }
1656
1657 inline ResistivityLaw
1659 {
1660 return mResistivityLaw ;
1661 }
1662
1663 inline bool
1664 Material::depends( const MaterialProperty aProperty, const MaterialDependency aDependency ) const
1665 {
1666 return mPropertyDependencies( static_cast< size_t >( aProperty ) )->test( static_cast< uint >( aDependency ));
1667 }
1668
1669 inline const MaterialDependencyBitset *
1671 {
1672 return mPropertyDependencies( static_cast< size_t >( aProperty ) ) ;
1673 }
1674
1675 inline bool
1677 {
1678 return mIsIsotropic ;
1679 }
1680
1681 inline bool
1683 {
1684 return ! std::isnan( mConstantProperties( static_cast< index_t >( aProperty ) ) ) ;
1685 }
1686
1687 inline real
1689 {
1690 BELFEM_ASSERT( this->is_constant( aProperty ), "Property is not constant" ) ;
1691 return mConstantProperties( static_cast< size_t >( aProperty ) ) ;
1692 }
1693
1694//------------------------------------------------------------------------------
1695
1696 inline real
1698 {
1700 "Material '%s' does not have density assigned", this->label().c_str() ) ;
1701
1702 return ( this->*mFunctionDensity )( T );
1703 }
1704
1705 inline real
1707 {
1709 "Wrong function call for Material::density");
1711 }
1712
1713 inline real
1715 {
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() );
1720
1721 if ( T == mConstantProperties( static_cast< index_t >( MaterialProperty::T_ref_density ) ) )
1722 {
1723 return mConstantProperties( static_cast< index_t >( MaterialProperty::ref_density ) ) ;
1724 }
1725
1726 return mConstantProperties( static_cast< index_t >( MaterialProperty::ref_density ) ) / std::pow( this->l( T ), 3.0 ) ;
1727 }
1728
1729 inline real
1731 {
1733 "Material %s does not have a reference density set", mLabel.c_str() );
1735 }
1736
1737 inline real Material::M() const
1738 {
1739 return this->constant_property( MaterialProperty::M );
1740 }
1741
1742 inline real
1744 {
1745 BELFEM_ASSERT( this->have( MaterialProperty::cp ), "Material does not have specific heat capacity" ) ;
1746
1747 return ( this->*mFunctionCp )( T );
1748 }
1749
1750 inline real
1752 {
1754 }
1755
1756 inline real Material::dcpdT( const real T ) const
1757 {
1758 BELFEM_ASSERT( this->have( MaterialProperty::cp ), "Material does not have specific heat capacity" ) ;
1759
1760 return (this->*mFunctiondCpdT )( T ) ;
1761 }
1762
1763 inline real Material::d2cpdT2( const real T ) const
1764 {
1765 BELFEM_ASSERT( this->have( MaterialProperty::cp ), "Material does not have specific heat capacity" ) ;
1766
1767 return (this->*mFunctiond2CpdT2 )( T ) ;
1768 }
1769
1770 inline real
1772 {
1773 return 0. ;
1774 }
1775
1776 inline real
1778 {
1779 return 0.5 * ( this->cp( T + gFinDiffDeltaT )
1780 - this->cp( T - gFinDiffDeltaT ) ) /gFinDiffDeltaT ;
1781 }
1782
1783 inline real
1785 {
1786 return ( this->cp( T + gFinDiffDeltaT ) - 2. * this->cp( T )
1787 + this->cp( T - gFinDiffDeltaT ) ) / ( gFinDiffDeltaT * gFinDiffDeltaT );
1788 }
1789
1790 inline real
1792 {
1793 return this->spline_property( MaterialProperty::cp, T );
1794 }
1795
1796 inline real
1798 {
1799 return this->dspline_property( MaterialProperty::cp, T );
1800 }
1801
1802 inline real
1804 {
1805 return this->ddspline_property( MaterialProperty::cp, T );
1806 }
1807
1808//------------------------------------------------------------------------------
1809
1810 inline real
1811 Material::lambda( const real T ) const
1812 {
1813 BELFEM_ASSERT( this->is_isotropic(), "Material %s is not isotropic", mLabel.c_str() ) ;
1815 "Material does not have thermal conductivity" ) ;
1816 return (this->*mFunctionLambda )( T ) ;
1817 }
1818
1819 inline real
1821 {
1823 }
1824
1825 inline real
1826 Material::dlambdadT( const real T ) const
1827 {
1828 BELFEM_ASSERT( this->is_isotropic(), "Material %s is not isotropic", mLabel.c_str() ) ;
1830 "Material does not have thermal conductivity" ) ;
1831
1832 return (this->*mFunctiondLambdadT )( T ) ;
1833 }
1834
1835 inline real
1837 {
1838 return 0.5 * ( this->lambda( T + gFinDiffDeltaT )
1839 - this->lambda( T - gFinDiffDeltaT ) ) /gFinDiffDeltaT ;
1840 }
1841
1842 inline real
1844 {
1845 return this->spline_property( MaterialProperty::lambda, T );
1846 }
1847
1848 inline real
1850 {
1851 return this->dspline_property( MaterialProperty::lambda, T );
1852 }
1853
1854 inline real
1855 Material::lambda( const real T, const real B, const real beta ) const
1856 {
1857 BELFEM_ASSERT( this->is_isotropic(), "Material %s is not isotropic", mLabel.c_str() ) ;
1859 "Material %s does not have thermal conductivity", mLabel.c_str() ) ;
1860
1862 "wrong function call for Material::lambda in material %s", mLabel.c_str() ) ;
1863
1864 return this->lambda( T );
1865 }
1866
1867 inline real
1868 Material::dlambdadT( const real T, const real B, const real beta ) const
1869 {
1870 BELFEM_ASSERT( this->is_isotropic(), "Material %s is not isotropic", mLabel.c_str() ) ;
1872 "Material %s does not have thermal conductivity", mLabel.c_str() ) ;
1873
1875 "wrong function call for Material::dlambdadT in material %s", mLabel.c_str() ) ;
1876
1877 return this->dlambdadT( T );
1878 }
1879
1880 inline real
1881 Material::dlambdadB( const real T, const real B, const real beta ) const
1882 {
1883 BELFEM_ASSERT( this->is_isotropic(), "Material %s is not isotropic", mLabel.c_str() ) ;
1885 "Material %s does not have thermal conductivity", mLabel.c_str() ) ;
1886
1888 "wrong function call for Material::dlambdadB in material %s", mLabel.c_str() ) ;
1889
1890 return 0.;
1891 }
1892
1893 inline real
1894 Material::dlambdadbeta( const real T, const real B, const real beta ) const
1895 {
1896 BELFEM_ASSERT( this->is_isotropic(), "Material %s is not isotropic", mLabel.c_str() ) ;
1898 "Material %s does not have thermal conductivity", mLabel.c_str() ) ;
1899
1901 "wrong function call for Material::dlambdadbeta in material %s", mLabel.c_str() ) ;
1902
1903 return 0.;
1904 }
1905
1906//------------------------------------------------------------------------------
1907
1908 inline real
1909 Material::lambda( const real T, const real B_par, const real B_perp, const real J ) const
1910 {
1911 BELFEM_ASSERT( this->is_isotropic(), "Material %s is not isotropic", mLabel.c_str() ) ;
1913 "Material %s does not have thermal conductivity", mLabel.c_str() ) ;
1914
1915 BELFEM_ASSERT( mType == MaterialType::HTS, "wrong function call for Material::lambda" ) ;
1916
1917 return this->lambda( T );
1918 }
1919
1920 inline real
1921 Material::dlambdadT( const real T, const real B_par, const real B_perp, const real J )const
1922 {
1923 BELFEM_ASSERT( this->is_isotropic(), "Material %s is not isotropic", mLabel.c_str() ) ;
1925 "Material %s does not have thermal conductivity", mLabel.c_str() ) ;
1926
1928 "wrong function call for Material::dlambdadT in material %s", mLabel.c_str() ) ;
1929
1930 return this->dlambdadT( T );
1931 }
1932
1933//------------------------------------------------------------------------------
1934
1935 inline real
1936 Material::rho( const real T ) const
1937 {
1938 BELFEM_ASSERT( this->is_isotropic(), "Material %s is not isotropic", mLabel.c_str() ) ;
1940 "Material %s does not have electric resistivity", mLabel.c_str() ) ;
1941
1942 return ( this->*mFunctionRho )( T ) ;
1943 }
1944
1945 inline real
1946 Material::drhodT( const real T ) const
1947 {
1948 BELFEM_ASSERT( this->is_isotropic(), "Material %s is not isotropic", mLabel.c_str() ) ;
1950 "Material %s does not have electric resistivity", mLabel.c_str() ) ;
1951
1952 return ( this->*mFunctiondRhodT )( T ) ;
1953 }
1954
1955 inline real
1957 {
1958 return 0.5 * ( this->rho( T + gFinDiffDeltaT )
1959 - this->rho( T - gFinDiffDeltaT ) ) / gFinDiffDeltaT ;
1960 }
1961
1962 inline real
1963 Material::rho_const( const real T ) const
1964 {
1966 }
1967
1968 inline real
1970 {
1971 return this->drhodT_finite_difference( T );
1972 }
1973
1974 inline real
1976 {
1977 return this->spline_property( MaterialProperty::rho, T );
1978 }
1979
1980 inline real
1982 {
1983 return this->dspline_property( MaterialProperty::rho, T );
1984 }
1985
1986 inline real
1987 Material::rho( const real T, const real B, const real beta ) const
1988 {
1989
1990 BELFEM_ASSERT( mFunctionRhoKohler != nullptr, "Material %s does not have a Kohler function", mLabel.c_str() ) ;
1991
1993 "wrong function call for Material::rho in %s", mLabel.c_str() ) ;
1994
1995 return this->rho( T );
1996 }
1997
1998 inline real
1999 Material::drhodT( const real T, const real B, const real beta ) const
2000 {
2001
2002 BELFEM_ASSERT( mFunctionRhoKohler != nullptr, "Material %s does not have a Kohler function", mLabel.c_str() ) ;
2003
2005 "wrong function call for Material::drhodT in %s", mLabel.c_str() ) ;
2006
2007 return this->drhodT( T );
2008 }
2009
2010 // base fallback: a metal without field-dependent resistivity has no
2011 // B or beta sensitivity — no Kohler function required here, the
2012 // Metal override handles the field-dependent case
2013 inline real
2014 Material::drhodB( const real T, const real B, const real beta ) const
2015 {
2017 "wrong function call for Material::drhodB in %s", mLabel.c_str() ) ;
2018
2019 return 0. ;
2020 }
2021
2022 inline real
2023 Material::drhodbeta( const real T, const real B, const real beta ) const
2024 {
2026 "wrong function call for Material::drhodbeta in %s", mLabel.c_str() ) ;
2027
2028 return 0. ;
2029 }
2030
2031//------------------------------------------------------------------------------
2032
2033 inline real
2034 Material::H( const real B ) const
2035 {
2036 return (this->*mFunctionH ) ( B );
2037 }
2038
2039 inline real
2040 Material::H_const( const real B ) const
2041 {
2042 return B * constant::nu0 ;
2043 }
2044
2045//------------------------------------------------------------------------------
2046
2047 inline real
2048 Material::mu( real H, const real T ) const
2049 {
2050 return ( this->*mFunctionMu )( H, T );
2051 }
2052
2053 inline real
2054 Material::mu_const( real H, const real T ) const
2055 {
2057 }
2058
2059//------------------------------------------------------------------------------
2060
2061 inline void
2062 Material::dmudH( const real H, real & mu, real & dmudH ) const
2063 {
2064 ( this->*mFunctionDMuDH )( H, mu, dmudH );
2065 }
2066
2067 inline void
2069 {
2071 dmudH = 0.0 ;
2072 }
2073
2074//------------------------------------------------------------------------------
2075
2076 inline real
2078 {
2079 BELFEM_ASSERT( this->is_isotropic(), "Material %s is not isotropic", mLabel.c_str() ) ;
2081 "Material %s does not have Youngs Modulus", mLabel.c_str() ) ;
2082 return ( this->*mFunctionE )( T );
2083 }
2084
2085 inline real
2086 Material::E_const( const real T ) const
2087 {
2088 return this->constant_property( MaterialProperty::E );
2089 }
2090
2091 inline real
2092 Material::E_spline( const real T ) const
2093 {
2094 return this->spline_property( MaterialProperty::E, T );
2095 }
2096
2097//------------------------------------------------------------------------------
2098
2099 inline real
2101 {
2102 BELFEM_ASSERT( this->is_isotropic(),
2103 "Material %s is not isotropic", mLabel.c_str() ) ;
2105 "Material does not have Poisson Ratio" ) ;
2106
2107 return ( this->*mFunctionNu )( T );
2108 }
2109
2110 inline real
2111 Material::nu_const( const real T ) const
2112 {
2114 }
2115
2116 inline real
2117 Material::nu_spline( const real T ) const
2118 {
2119 return this->spline_property( MaterialProperty::nu, T );
2120 }
2121
2122//------------------------------------------------------------------------------
2123
2124 inline real
2126 {
2127 return this->E( T ) / ( 2.0 * ( 1.0 + this->nu( T ) ) ) ;
2128 }
2129
2130//------------------------------------------------------------------------------
2131
2132 inline real
2134 {
2135 return this->E( T ) / ( 3.0 * ( 1.0 - 2.0 * this->nu( T ) ) ) ;
2136 }
2137
2138//------------------------------------------------------------------------------
2139
2140 inline real
2142 {
2143 BELFEM_ASSERT( this->is_isotropic(), "Material %s is not isotropic", mLabel.c_str() ) ;
2145 "Material %s does not have thermal expansion", mLabel.c_str() ) ;
2146
2147 return ( this->*mFunctionAlpha )( T );
2148 }
2149
2150 inline real
2152 {
2154 }
2155
2156 inline real
2158 {
2159 return this->spline_property( MaterialProperty::alpha, T );
2160 }
2161
2162//------------------------------------------------------------------------------
2163
2164//------------------------------------------------------------------------------
2165
2166 inline real
2168 {
2169 BELFEM_ASSERT( this->is_isotropic(), "Material %s is not isotropic", mLabel.c_str() ) ;
2171 "Material %s does not have yield stress", mLabel.c_str() ) ;
2172
2173 return ( this->*mFunctionRp02 )( T );
2174 }
2175
2176 inline real
2178 {
2180 }
2181
2182 inline real
2184 {
2185 return this->spline_property( MaterialProperty::Rp02, T );
2186 }
2187
2188//------------------------------------------------------------------------------
2189
2190 inline real
2192 {
2193 BELFEM_ASSERT( this->is_isotropic(), "Material %s is not isotropic", mLabel.c_str() ) ;
2195 "Material %s does not have Debye temperature", mLabel.c_str() ) ;
2196
2197 return ( this->*mFunctionDebye )( T );
2198 }
2199
2200 inline real
2202 {
2204 }
2205
2206 inline real
2208 {
2209 return this->spline_property( MaterialProperty::debye, T );
2210 }
2211
2212 inline real
2213 Material::rho_i( const real T ) const
2214 {
2215 return ( this->*mFunctionRhoI )( T );
2216 }
2217
2218 inline real
2220 {
2221 return this->spline_property( MaterialProperty::rho_i, T );
2222 }
2223
2224//------------------------------------------------------------------------------
2225
2226 inline real
2228 {
2229 BELFEM_ASSERT( ! std::isnan( mTAlphaSwitch ),
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 ;
2233 }
2234
2235//------------------------------------------------------------------------------
2236
2237 inline real
2238 Material::volumetric_heatload( const real x, const real y, const real z, const real time ) const
2239 {
2240 BELFEM_ASSERT( mHeatFunction != nullptr , "No heat function set for material %s", mLabel.c_str() ) ;
2241 return this->mHeatFunction( x, y, z, time ) ;
2242 }
2243
2244}
2245
2246#include "powerlaws.hpp"
2247
2248// The pop MUST mirror the push at the top of this header condition for
2249// condition. It used to test BELFEM_CLANG / BELFEM_GCC / BELFEM_INTEL, which
2250// are BELFEM build defines, while the push tests compiler builtins. A
2251// translation unit that includes this header without those defines -- every
2252// user-material plugin built from UserMaterialTemplate.cmake -- therefore
2253// pushed and never popped, silently disabling -Wformat, -Wunused-variable and
2254// -Wunused-parameter for the rest of the file.
2255#if defined(__clang__)
2256#pragma clang diagnostic pop
2257
2258#elif defined(__GNUC__) || defined(__GNUG__)
2259#pragma GCC diagnostic pop
2260
2261#elif defined(BELFEM_INTEL)
2262#pragma warning(pop)
2263
2264#endif
2265
2266#endif //BELFEM_CL_MATERIAL_HPP
#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
Definition debye.f90:11
Inline E–J resistivity models for HTS materials and their Jacobians.
#define BELFEM_QUIET_NAN
Definition typedefs.hpp:86