16#ifndef Field_base_included
17#define Field_base_included
35enum Nature_du_champ { scalaire, quadrature_scalaire, multi_scalaire, vectoriel, quadrature_vectoriel,
36 basis_function_order_1_scalar, basis_function_order_2_scalar,
37 basis_function_order_1_vectorial, basis_function_order_2_vectorial
84 return nature_==vectoriel or
nature_==quadrature_vectoriel or
nature_ == basis_function_order_1_vectorial or
nature_ == basis_function_order_2_vectorial;
const Nom & nom_compo() const
Returns the name of a scalar field.
virtual void fixer_nb_comp(int i)
Sets the number of components of the field.
const Nom & le_nom() const override
Returns the name of the field.
virtual int nb_vect_comp() const
virtual const Noms & fixer_unites(const Noms &)
Specifies the units of the field components.
void nommer(const Nom &) override
Gives a name to the field.
const Noms & get_synonyms() const
virtual const Nom & fixer_unite(const Nom &)
Specifies the unit of a scalar field or whose all components have the same unit.
const Nom & unite() const
Returns the unit of a scalar field whose all components have the same unit.
virtual Nature_du_champ fixer_nature_du_champ(Nature_du_champ nat)
Sets the nature of a field: scalar, multiscalar, vectorial.
virtual int nb_comp() const
bool is_quadrature() const
virtual const Noms & fixer_noms_compo(const Noms &)
Sets the names of the field components.
virtual void add_synonymous(const Nom &nom)
Field_base(const Field_base &other)=default
virtual const Nom & fixer_nom_compo(int, const Nom &)
Sets the name of the i-th component of the field.
bool is_vectorial() const
virtual Nature_du_champ nature_du_champ() const
const Noms & unites() const
Returns the units of the field components.
bool is_basis_function() const
const Noms & noms_compo() const
Returns the array of names of the field components.
int order_field() const
Returns the order of the basis functions.
class Nom: a character string for naming TRUST objects.
An array of character strings (VECT(Nom)).
Objet_U()
Default constructor: assigns a unique identifier to the object (object_id_) and registers the object ...