Hermes2D  2.0
Hermes::Hermes2D::ZeroSolutionVector< Scalar > Class Template Reference
+ Inheritance diagram for Hermes::Hermes2D::ZeroSolutionVector< Scalar >:

Public Member Functions

 ZeroSolutionVector (const Mesh *mesh)
 
virtual Scalar2< Scalar > value (double x, double y) const
 Function returning the value.
 
virtual void derivatives (double x, double y, Scalar2< Scalar > &dx, Scalar2< 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
 
- Public Member Functions inherited from Hermes::Hermes2D::ExactSolutionVector< Scalar >
 ExactSolutionVector (const Mesh *mesh)
 
virtual unsigned int get_dimension () const
 For vector-valued solutions this returns 2.
 
virtual Scalar2< Scalar > exact_function (double x, double y, Scalar2< Scalar > &dx, Scalar2< Scalar > &dy) const
 Function returning the value and derivatives.
 
virtual Hermes::Ord ord (Hermes::Ord x, Hermes::Ord y) const =0
 
- Public Member Functions inherited from Hermes::Hermes2D::ExactSolution< Scalar >
 ExactSolution (const Mesh *mesh)
 
std::string getClassName () const
 Get class name, for the purpose of messaging.
 
- Public Member Functions inherited from Hermes::Hermes2D::Solution< Scalar >
 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)
 
Solutionoperator= (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)
 
- Public Member Functions inherited from Hermes::Hermes2D::MeshFunction< Scalar >
 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 Meshget_mesh () const
 
RefMapget_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 ()
 
- Public Member Functions inherited from Hermes::Hermes2D::Function< Scalar >
 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...
 
Quad2Dget_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.
 
- Public Member Functions inherited from Hermes::Hermes2D::Transformable
Elementget_active_element () const
 
void set_transform (uint64_t idx)
 
uint64_t get_transform () const
 
- Public Member Functions inherited from Hermes::Hermes2D::Mixins::StateQueryable
void check () const
 Method to handle the state.
 
- Public Member Functions inherited from Hermes::Hermes2D::Mixins::XMLParsing
 XMLParsing ()
 Constructor.
 
void set_validation (bool to_set)
 Set to validate / not to validate.
 

Additional Inherited Members

- Static Public Member Functions inherited from Hermes::Hermes2D::Solution< Scalar >
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)
 
- Protected Member Functions inherited from Hermes::Hermes2D::Solution< Scalar >
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 Protected Member Functions inherited from Hermes::Hermes2D::Function< Scalar >
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)
 
- Protected Attributes inherited from Hermes::Hermes2D::ExactSolution< Scalar >
Scalar exact_multiplicator
 For scaling of the solution.
 
- Static Protected Attributes inherited from Hermes::Hermes2D::Solution< Scalar >
static bool static_verbose_output = false
 

Detailed Description

template<typename Scalar>
class Hermes::Hermes2D::ZeroSolutionVector< Scalar >

Definition at line 168 of file exact_solution.h.

Member Function Documentation

template<>
void Hermes::Hermes2D::ZeroSolutionVector< double >::save ( const char *  filename) const
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 350 of file exact_solution.cpp.

template<>
void Hermes::Hermes2D::ZeroSolutionVector< std::complex< double > >::save ( const char *  filename) const
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 385 of file exact_solution.cpp.


The documentation for this class was generated from the following files: