Hermes2D
2.0
|
Public Member Functions | |
ConstantSolution (const Mesh *mesh, Scalar constant) | |
virtual Scalar | value (double x, double y) const |
Function returning the value. | |
virtual void | derivatives (double x, double y, Scalar &dx, Scalar &dy) const |
Function returning the derivatives. | |
virtual Ord | ord (Ord x, Ord y) const |
virtual MeshFunction< Scalar > * | clone () const |
void | save (const char *filename) const |
Saves the exact solution to an XML file. | |
template<> | |
void | save (const char *filename) const |
template<> | |
void | save (const char *filename) const |
![]() | |
ExactSolutionScalar (const Mesh *mesh) | |
virtual unsigned int | get_dimension () const |
For Scalar-valued solutions this returns 1. | |
Scalar | exact_function (double x, double y, Scalar &dx, Scalar &dy) const |
Function returning the value and derivatives. | |
virtual Hermes::Ord | ord (Hermes::Ord x, Hermes::Ord y) const =0 |
![]() | |
ExactSolution (const Mesh *mesh) | |
std::string | getClassName () const |
Get class name, for the purpose of messaging. | |
![]() | |
Solution (const Mesh *mesh) | |
Solution (Space< Scalar > *s, Vector< Scalar > *coeff_vec) | |
Solution (Space< Scalar > *s, Scalar *coeff_vec) | |
std::string | getClassName () const |
State querying helpers. | |
void | assign (Solution *sln) |
Solution & | operator= (Solution &sln) |
virtual void | copy (const Solution< Scalar > *sln) |
void | set_dirichlet_lift (const Space< Scalar > *space, PrecalcShapeset *pss=NULL) |
Sets solution equal to Dirichlet lift only, solution vector = 0. | |
void | load (const char *filename, Space< Scalar > *space) |
Scalar | get_ref_value (Element *e, double xi1, double xi2, int component=0, int item=0) |
Scalar | get_ref_value_transformed (Element *e, double xi1, double xi2, int a, int b) |
virtual Func< Scalar > * | get_pt_value (double x, double y) |
void | multiply (Scalar coef) |
Multiplies the function represented by this class by the given coefficient. | |
SolutionType | get_type () const |
Returns solution type. | |
SpaceType | get_space_type () const |
virtual void | set_active_element (Element *e) |
Internal. | |
template<> | |
Solution (const Mesh *mesh) | |
template<> | |
Solution (const Mesh *mesh) | |
template<> | |
Solution (Space< double > *s, Vector< double > *coeff_vec) | |
template<> | |
Solution (Space< std::complex< double > > *s, Vector< std::complex< double > > *coeff_vec) | |
template<> | |
Solution (Space< double > *s, double *coeff_vec) | |
template<> | |
Solution (Space< std::complex< double > > *s, std::complex< double > *coeff_vec) | |
template<> | |
void | save (const char *filename) const |
template<> | |
void | save (const char *filename) const |
template<> | |
void | load (const char *filename, Space< double > *space) |
template<> | |
void | load (const char *filename, Space< std::complex< double > > *space) |
![]() | |
MeshFunction (const Mesh *mesh) | |
virtual bool | isOkay () const |
State querying helpers. | |
virtual void | reinit () |
virtual void | set_quad_2d (Quad2D *quad_2d) |
Selects the quadrature points in which the function will be evaluated. More... | |
const Mesh * | get_mesh () const |
RefMap * | get_refmap (bool update=true) |
void | set_refmap (RefMap *refmap_to_set) |
virtual void | handle_overflow_idx () |
virtual void | push_transform (int son) |
See Transformable::push_transform. | |
virtual void | pop_transform () |
![]() | |
Function () | |
Default constructor. | |
virtual | ~Function () |
int | get_num_components () const |
Returns the number of components of the function being represented by the class. | |
Scalar * | get_fn_values (int component=0) |
Returns function values. More... | |
Scalar * | get_dx_values (int component=0) |
Returns the x partial derivative. More... | |
Scalar * | get_dy_values (int component=0) |
Returns the y partial derivative. More... | |
void | get_dx_dy_values (Scalar *&dx, Scalar *&dy, int component=0) |
Returns both x and y partial derivatives. This function provides the both often-used dx and dy values in one call. More... | |
Scalar * | get_dxx_values (int component=0) |
Returns the second x partial derivative. More... | |
Scalar * | get_dyy_values (int component=0) |
Returns the second y partial derivative. More... | |
Scalar * | get_dxy_values (int component=0) |
Returns the second mixed derivative. More... | |
Quad2D * | get_quad_2d () const |
Returns the current quadrature points. | |
void | set_quad_order (unsigned int order, int mask=H2D_FN_DEFAULT) |
Scalar * | get_values (int a, int b) |
int | get_fn_order () const |
Returns the polynomial degree of the function being represented by the class. | |
![]() | |
Element * | get_active_element () const |
void | set_transform (uint64_t idx) |
uint64_t | get_transform () const |
![]() | |
void | check () const |
Method to handle the state. | |
![]() | |
XMLParsing () | |
Constructor. | |
void | set_validation (bool to_set) |
Set to validate / not to validate. | |
Protected Attributes | |
Scalar | constant |
Additional Inherited Members | |
![]() | |
static void | vector_to_solutions (const Scalar *solution_vector, Hermes::vector< const Space< Scalar > * > spaces, Hermes::vector< Solution< Scalar > * > solutions, Hermes::vector< bool > add_dir_lift=Hermes::vector< bool >(), Hermes::vector< int > start_indices=Hermes::vector< int >()) |
Passes solution components calculated from solution vector as Solutions. | |
static void | vector_to_solution (const Scalar *solution_vector, const Space< Scalar > *space, Solution< Scalar > *solution, bool add_dir_lift=true, int start_index=0) |
static void | vector_to_solutions (const Vector< Scalar > *vec, Hermes::vector< const Space< Scalar > * > spaces, Hermes::vector< Solution< Scalar > * > solutions, Hermes::vector< bool > add_dir_lift=Hermes::vector< bool >(), Hermes::vector< int > start_indices=Hermes::vector< int >()) |
static void | vector_to_solutions_common_dir_lift (const Vector< Scalar > *vec, Hermes::vector< const Space< Scalar > * > spaces, Hermes::vector< Solution< Scalar > * > solutions, bool add_dir_lift=false) |
static void | vector_to_solutions_common_dir_lift (const Scalar *solution_vector, Hermes::vector< const Space< Scalar > * > spaces, Hermes::vector< Solution< Scalar > * > solutions, bool add_dir_lift=false) |
static void | vector_to_solution (const Vector< Scalar > *vec, const Space< Scalar > *space, Solution< Scalar > *solution, bool add_dir_lift=true, int start_index=0) |
static void | vector_to_solutions (const Scalar *solution_vector, Hermes::vector< const Space< Scalar > * > spaces, Hermes::vector< Solution< Scalar > * > solutions, Hermes::vector< PrecalcShapeset * > pss, Hermes::vector< bool > add_dir_lift=Hermes::vector< bool >(), Hermes::vector< int > start_indices=Hermes::vector< int >()) |
static void | vector_to_solution (const Scalar *solution_vector, const Space< Scalar > *space, Solution< Scalar > *solution, PrecalcShapeset *pss, bool add_dir_lift=true, int start_index=0) |
static void | set_static_verbose_output (bool verbose) |
![]() | |
virtual int | get_edge_fn_order (int edge) |
void | enable_transform (bool enable=true) |
virtual void | init () |
virtual void | free () |
Frees all precalculated tables. | |
virtual void | set_coeff_vector (const Space< Scalar > *space, const Vector< Scalar > *vec, bool add_dir_lift, int start_index) |
Converts a coefficient vector into a Solution. | |
virtual void | set_coeff_vector (const Space< Scalar > *space, PrecalcShapeset *pss, const Scalar *coeffs, bool add_dir_lift, int start_index) |
virtual void | set_coeff_vector (const Space< Scalar > *space, const Scalar *coeffs, bool add_dir_lift, int start_index) |
void | transform_values (int order, struct Function< Scalar >::Node *node, int newmask, int oldmask, int np) |
virtual void | precalculate (int order, int mask) |
precalculates the current function at the current integration points. | |
double ** | calc_mono_matrix (int o, int *&perm) |
void | init_dxdy_buffer () |
void | free_tables () |
template<> | |
void | init () |
template<> | |
void | init () |
template<> | |
void | free () |
Frees all precalculated tables. | |
template<> | |
void | free () |
Frees all precalculated tables. | |
![]() | |
static void | check_params (int component, Node *cur_node, int num_components) |
static void | check_table (int component, Node *cur_node, int n, const char *msg) |
![]() | |
static bool | static_verbose_output = false |
Definition at line 108 of file exact_solution.h.
|
virtual |
Saves the complete solution (i.e., including the internal copy of the mesh and element orders) to an XML file.
Reimplemented from Hermes::Hermes2D::Solution< Scalar >.
Definition at line 63 of file exact_solution.cpp.
|
virtual |
Saves the complete solution (i.e., including the internal copy of the mesh and element orders) to an XML file.
Reimplemented from Hermes::Hermes2D::Solution< Scalar >.
Definition at line 96 of file exact_solution.cpp.