-
Summary of Built-In Variables With Reserved
Names
This section is an overview of
the built-in elements of the following categories
as
defined by the underlying COMSOL
language:
?
C
onstants
?
V
ariables
?
F
unctions
These
language elements are built-in or user-defined. In
addition there are
operators
that cannot be user-defined, and
expressions
, which are
always user-defined.
具有保留名称的内置变量摘要
本节概
述了由基础
COMSOL
语言定义的以下类别的内置元素:
p>
?
常量
?
变量
?
功能
这些语言元素是内置的或用户定义的。
此外,还有不能由用户定义的运算符,
以及始终由用户定义的表达式。
ABOUT RESERVED
NAMES
关于预留名称
Built-in variables have
reserved names
, names that
cannot be redefined by the user. It
is
not recommended to use a reserved variable name
for a user-defined variable,
parameter,
or function. For some of the most common reserved
variable names, such
as pi, i, and j,
the text where you enter the name turns orange and
you get a tooltip
message if you select
the text string. Reserved function names are
reserved only for
function names, which
means that such names can be used for variable and
parameter
names, and vice versa. The
following tables list most built-in elements and
hence
those reserved names.
内置变量具有保留名称,用户无法重新定义。
不建议对用户定义的变量,参数
或函数使用保留的变量名。
对于一些最常见的保留变量名称,例如
pi
,
i
和
j
< br>,
输入名称变为橙色,如果选择文本字符串,则会得到工具提示消息。
保留的函
数名称仅作为函数名保留,这意味着此
类名称可用于变量和参数名称,反之亦
然。
下表列出了大多数内置元素,因此列出了这些保留名称。
CONSTANTS AND
PARAMETERS
常量和参数
There are three different types of
constants: built-in
mathematical and
numerical
constants
, built-
in
physical constants
, and
parameters
. Parameters are
user-defined
constants that can vary
over parameter sweeps. Constants are scalar
valued. The
following table lists the
built-in physical constants. Constants and
parameters can
have units.
有
三种不同类型的常数:内置的数学和数值常数,内置的物理常数和参数。
参
数是用户定义的常量,可以随参数扫描而变化。
常量是标量值。
下表列出了
内置物理常量。
常量和参数可以有单位。
BUILT-IN PHYSICAL
CONSTANTS
内置物理常数
TABLE 5-12: BUILT-IN
DESCRIPTION
描述
PHYSICAL
CONSTANTS
NAME
g_const
N_A_const
k_B_const
Z0_const
Acceleration of
gravity
Avogadro constant
Boltzmann constant
Characteristic impedance of vacuum
(impedance of free
space)
真空的特性阻抗(自由空间的阻抗)
me_const
e_const
F_const
alpha_const
G_const
V_m_const
Electron mass
电子质量
Elementary
charge
元电荷
Faraday
constant
法拉第常数
Fine-structure
constant
精细结构常数
Gravitational
constant
万有引力常量
Molar volume of ideal gas (at 273.15 K
and 1 atm)
理想气体的摩尔体积(在
273.15
K
和
1atm
下)
mn_const
mu0_const
Neutron mass
中子质量
Permeability of vacuum (magnetic
constant)
真空的磁导率(磁常数)
epsilon0_const
Permittivity
of vacuum (electric constant)
真空介电常数(电常数)
h_const
hbar_const
mp_const
c_const
sigma_const
R_const
b_const
Planck’s
constant
普朗克常数
Planck’s constant over 2
pi
超过
2
pi
的普朗克常数
Proton
mass
质子质量
Speed of
light in vacuum
真空中的光速
Stefan-Boltzmann
constant
斯蒂芬-玻尔兹曼常数
Universal gas
constant
通用气体常数
Wien displacement law
constant
维恩位移常数
BUILT-IN MATHEMATICAL
FUNCTIONS
内置数学函数
These functions do not have units for
their input or output arguments.
这些函数没有<
/p>
用于其输入或输出参数的单位。
TABLE 5-13: BUILT-IN
MATHEMATICAL
FUNCTIONS
NAME
abs
acos
acosh
acot
acoth
acsc
acsch
arg
asec
asech
Absolute value
绝对值
Inverse cosine (in
radians)
逆余弦(以弧度表示)
Inverse hyperbolic
cosine
反双曲余弦
Inverse cotangent (in
radians)
反余切(单位为弧度)
Inverse hyperbolic
cotangent
反双曲余切
Inverse cosecant (in
radians)
逆余弦(以弧度表示)
Inverse hyperbolic
cosecant
反双曲余割
Phase angle (in
radians)
相位角(以弧度表示)
Inverse secant (in
radians)
反正切(以弧度表示)
Inverse hyperbolic
secant
反双曲正割
DESCRIPTION
asin
asinh
atan
atan2
Inverse sine (in
radians)
反正弦(以弧度表示)
Inverse hyperbolic
sine
反双曲正弦
Inverse
tangent (in radians)
反正切(弧度)
Four-quadrant inverse tangent (in radia
ns)
四象限反
正切(以弧度表示)
atanh
besselj
bessely
Inverse hyperbolic
tangent
反双曲正切
Bessel function of the first
kind
第一类贝塞尔函数
Bessel function of the second
kind
第二类贝塞尔函
数
besseli
Modified Bessel
function of the first
kind
第一类修
改的贝塞尔函数
besselk
Modified Bessel
function of the second
kind
第二类
修改的贝塞尔函数
ceil
conj
cos
cosh
cot
coth
csc
csch
erf
exp
floor
gamma
imag
Nearest following
integer
Complex
conjugate
复共轭
Cosine
余弦
Hyperbolic
cosine
双曲余弦
Cotangent
余切
Hyperbolic
cotangent
双曲余切
Cosecant
余割
Hyperbolic
cosecant
双曲余割
Error
function
误差函数
Exponential
指数
Nearest previous integer
Gamma
function
伽马函数
Imaginary part
虚部
-
-
-
-
-
-
-
-
-
上一篇:FEMWATER使用说明书
下一篇:1数学术语