branch(3)

NAME

branch - (t,uh(t)) finite element function

DESCRIPTION

Stores a field together with its associated parameter value: a branch variable represents a pair (t,uh(t)) for a specific value of the parameter t. Applications concern time-dependent problems and continuation methods.

This class is convenient for file inputs/outputs and building graphical animations.

EXAMPLES

Coming soon...

LIMITATIONS

This class is under development.

The branch class store pointers on field class without reference counting. Thus, branch automatic variables cannot be returned by functions. branch variable are limited to local variables.

At each step, meshes are reloaded and spaces are rebuilted, even when they are identical.

The vtk render does not support mesh change during the loop (e.g. when using adaptive mesh process).

IMPLEMENTATION

class branch : public std::vector<std::pair<std::string,field> > {
public :

// allocators:
branch ();
branch (const std::string& parameter_name, const std::string& u_name);
branch (const std::string& parameter_name, const std::string& u_name, const std::string& p_name);
~branch ();
// accessors:

const Float& parameter () const;
const std::string& parameter_name () const;
size_type n_value () const;
size_type n_field () const;
// modifiers:

void set_parameter (const Float& value);
// input/output:

// get/set current value
friend std::istream& operator >> (std::istream&, branch&);
friend std::ostream& operator << (std::ostream&, const branch&);
__branch_header header ();
__const_branch_header header () const;
__const_branch_finalize finalize () const;
__obranch operator() (const Float& t, const field& u);
__obranch operator() (const Float& t, const field& u, const field& p);
__iobranch operator() (Float& t, field& u);
__iobranch operator() (Float& t, field& u, field& p);
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout