DOLFIN
DOLFIN C++ interface
Public Member Functions | List of all members
dolfin::LinearVariationalProblem Class Reference

#include <LinearVariationalProblem.h>

Inheritance diagram for dolfin::LinearVariationalProblem:
Inheritance graph
[legend]
Collaboration diagram for dolfin::LinearVariationalProblem:
Collaboration graph
[legend]

Public Member Functions

 LinearVariationalProblem (std::shared_ptr< const Form > a, std::shared_ptr< const Form > L, std::shared_ptr< Function > u, std::vector< std::shared_ptr< const DirichletBC >> bcs)
 
std::shared_ptr< const Formbilinear_form () const
 Return bilinear form.
 
std::shared_ptr< const Formlinear_form () const
 Return linear form.
 
std::shared_ptr< Functionsolution ()
 Return solution variable.
 
std::shared_ptr< const Functionsolution () const
 Return solution variable (const version)
 
std::vector< std::shared_ptr< const DirichletBC > > bcs () const
 Return boundary conditions.
 
std::shared_ptr< const FunctionSpacetrial_space () const
 Return trial space.
 
std::shared_ptr< const FunctionSpacetest_space () const
 Return test space.
 
- Public Member Functions inherited from dolfin::Hierarchical< LinearVariationalProblem >
 Hierarchical (LinearVariationalProblem &self)
 Constructor.
 
virtual ~Hierarchical ()
 Destructor.
 
std::size_t depth () const
 
bool has_parent () const
 
bool has_child () const
 
LinearVariationalProblemparent ()
 
const LinearVariationalProblemparent () const
 Return parent in hierarchy (const version).
 
std::shared_ptr< LinearVariationalProblemparent_shared_ptr ()
 
std::shared_ptr< const LinearVariationalProblemparent_shared_ptr () const
 Return shared pointer to parent (const version).
 
LinearVariationalProblemchild ()
 
const LinearVariationalProblemchild () const
 Return child in hierarchy (const version).
 
std::shared_ptr< LinearVariationalProblemchild_shared_ptr ()
 
std::shared_ptr< const LinearVariationalProblemchild_shared_ptr () const
 Return shared pointer to child (const version).
 
LinearVariationalProblemroot_node ()
 
const LinearVariationalProblemroot_node () const
 Return root node object in hierarchy (const version).
 
std::shared_ptr< LinearVariationalProblemroot_node_shared_ptr ()
 
std::shared_ptr< const LinearVariationalProblemroot_node_shared_ptr () const
 Return shared pointer to root node object in hierarchy (const version).
 
LinearVariationalProblemleaf_node ()
 
const LinearVariationalProblemleaf_node () const
 Return leaf node object in hierarchy (const version).
 
std::shared_ptr< LinearVariationalProblemleaf_node_shared_ptr ()
 
std::shared_ptr< const LinearVariationalProblemleaf_node_shared_ptr () const
 Return shared pointer to leaf node object in hierarchy (const version).
 
void set_parent (std::shared_ptr< LinearVariationalProblem > parent)
 Set parent.
 
void clear_child ()
 Clear child.
 
void set_child (std::shared_ptr< LinearVariationalProblem > child)
 Set child.
 
const Hierarchicaloperator= (const Hierarchical &hierarchical)
 Assignment operator.
 
void _debug () const
 Function useful for debugging the hierarchy.
 

Detailed Description

This class represents a linear variational problem:

Find u in V such that

a(u, v) = L(v)  for all v in V^,

where V is the trial space and V^ is the test space.

Constructor & Destructor Documentation

◆ LinearVariationalProblem()

LinearVariationalProblem::LinearVariationalProblem ( std::shared_ptr< const Form a,
std::shared_ptr< const Form L,
std::shared_ptr< Function u,
std::vector< std::shared_ptr< const DirichletBC >>  bcs 
)

Create linear variational problem with a list of boundary conditions


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