trace(3)
NAME
trace - restriction to boundary values operator
DESCRIPTION
The trace operator restricts a field to its values located to a boundary value domain. The trace class is a derived class of the form class
(see form(3)). Thus, all operations, such as linear algebra, that
applies to form, applies also to trace.
EXAMPLE
- The following example shows how to plot the trace of a field, from
standard input:
- int main() {
geo omega ("square");
space Vh (omega "P1");
space Wh (omega, "P1", omega ["top"]);
trace gamma (Vh, Wh);field uh;
cin >> uh;
field wh (Wh);
wh = gamma*uh;
cout << wh; - }
IMPLEMENTATION
class trace : public form
{
public :
- // allocator/deallocator:
- trace();
trace(const space& V, const space& W); - // accessors:
const space& get_space() const;
const space& get_boundary_space() const;
const geo& get_geo() const;
const geo& get_boundary_geo() const;- };