NEML
dev
About NEML
Getting started
Tutorial
Interpolation functions
Interfaces: types of material models
Elasticity models
Rate independent flow rule
General flow rule
Viscoplastic flow rule
Yield surfaces
Hardening models
Creep models
Damage mechanics
Larson Miller correlations
Block evaluation functions
Crystal plasticity
Walker Alloy 617 model subsystem
NEML implementation
Python bindings and helpers
Advanced topics
Integrating models
Mathematical helpers
Tensor and rotation objects
Rotations
Tensors
Generic matrix system
Pointer array math functions
History object system
Solver interface
Object and input management
Python bindings
Adding an object to NEML
References
NEML
Docs
»
Advanced topics
»
Mathematical helpers
»
Tensors
»
Vector
Edit on GitHub
Vector
¶
This class represents a 3D vector, stored as a length 3 flat array.
class
Vector
:
public
neml
::
Tensor
¶
Public Functions
Vector
(
)
¶
Vector
(
const
std
::
vector
<
double
>
v
)
¶
Vector
(
double
*
v
)
¶
Vector
(
const
double
*
v
)
¶
Vector
opposite
(
)
const
¶
Vector
operator
-
(
)
const
¶
Vector
&
operator
+=
(
const
Vector
&
other
)
¶
Vector
&
operator
-=
(
const
Vector
&
other
)
¶
double
&
operator
()
(
size_t
i
)
¶
const
double
&
operator
()
(
size_t
i
)
const
¶
double
dot
(
const
Vector
&
rhs
)
const
¶
RankTwo
outer
(
const
Vector
&
o
)
const
¶
double
norm
(
)
const
¶
Vector
cross
(
const
Vector
&
other
)
const
¶
Vector
&
normalize
(
)
¶