BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
fn_Material_UserDefinedPolynomials.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, through
4 * 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_FN_MATERIAL_USERDEFINEDPOLYNOMIALS_HPP
13#define BELFEM_FN_MATERIAL_USERDEFINEDPOLYNOMIALS_HPP
14
15#include "cl_Material.hpp"
16
17namespace belfem
18{
19 namespace material
20 {
21//------------------------------------------------------------------------------
22
35
36//------------------------------------------------------------------------------
37
44 inline real
45 polyval_E( const Material * Mat, const real T )
46 {
47 return Mat->evaluate_polynomial( MaterialProperty::E, T );
48 }
49
56 inline real
57 polyval_nu( const Material * Mat, const real T )
58 {
59 return Mat->evaluate_polynomial( MaterialProperty::nu, T );
60 }
61
68 inline real
69 polyval_cp( const Material * Mat, const real T )
70 {
71 return Mat->evaluate_polynomial( MaterialProperty::cp, T );
72 }
73
80 inline real
81 polyval_lambda( const Material * Mat, const real T )
82 {
83 return Mat->evaluate_polynomial( MaterialProperty::lambda, T );
84 }
85
98 inline real
99 polyval_mu( const Material * Mat, const real H, const real T )
100 {
101 return Mat->evaluate_polynomial( MaterialProperty::mu, T );
102 }
103
110 inline real
111 polyval_rho( const Material * Mat, const real T )
112 {
113 return Mat->evaluate_polynomial( MaterialProperty::rho, T );
114 }
115
122 inline real
123 polyval_alpha( const Material * Mat, const real T )
124 {
125 return Mat->evaluate_polynomial( MaterialProperty::alpha, T );
126 }
127
134 inline real
135 polyval_Rp02( const Material * Mat, const real T )
136 {
137 return Mat->evaluate_polynomial( MaterialProperty::Rp02, T );
138 }
139
140//------------------------------------------------------------------------------
141 }
142}
143#endif //BELFEM_FN_MATERIAL_USERDEFINEDPOLYNOMIALS_HPP
Definition petsctools.hpp:27
Base class for all materials in BELFEM.
Definition cl_Material.hpp:279
Definition cl_BhCurve.cpp:19
real polyval_cp(const Material *Mat, const real T)
Evaluate specific heat using polynomial.
Definition fn_Material_UserDefinedPolynomials.hpp:69
real polyval_E(const Material *Mat, const real T)
Evaluate Young's modulus using polynomial.
Definition fn_Material_UserDefinedPolynomials.hpp:45
real polyval_mu(const Material *Mat, const real H, const real T)
Evaluate magnetic permeability using polynomial (temperature-dependent only).
Definition fn_Material_UserDefinedPolynomials.hpp:99
real polyval_alpha(const Material *Mat, const real T)
Evaluate thermal expansion coefficient using polynomial.
Definition fn_Material_UserDefinedPolynomials.hpp:123
real polyval_Rp02(const Material *Mat, const real T)
Evaluate 0.2% proof stress using polynomial.
Definition fn_Material_UserDefinedPolynomials.hpp:135
real polyval_rho(const Material *Mat, const real T)
Evaluate electrical resistivity using polynomial.
Definition fn_Material_UserDefinedPolynomials.hpp:111
real polyval_nu(const Material *Mat, const real T)
Evaluate Poisson's ratio using polynomial.
Definition fn_Material_UserDefinedPolynomials.hpp:57
real polyval_lambda(const Material *Mat, const real T)
Evaluate thermal conductivity using polynomial.
Definition fn_Material_UserDefinedPolynomials.hpp:81
USER GUIDES:
Definition cl_Capacitor.cpp:16
@ nu
Definition cl_Material.hpp:156
@ alpha
Definition cl_Material.hpp:161
@ E
Definition cl_Material.hpp:155
@ rho
Definition cl_Material.hpp:160
@ mu
Definition cl_Material.hpp:159
@ lambda
Definition cl_Material.hpp:158
@ cp
Definition cl_Material.hpp:157
@ Rp02
Definition cl_Material.hpp:162
double real
Definition typedefs.hpp:36