field_seq_visu_gnuplot_internal.h
Go to the documentation of this file.
#ifndef _RHEOLEF_SEQ_FIELD_VISU_GNUPLOT_INTERNAL_H
#define _RHEOLEF_SEQ_FIELD_VISU_GNUPLOT_INTERNAL_H
//
// gnuplot geo visualisation
//
// author: Pierre.Saramito@imag.fr
//
// date: 16 sept 2011
//
#include "rheolef/field.h"
#include "rheolef/fem_on_pointset.h"
namespace rheolef {
template <class T>
odiststream& visu_gnuplot (odiststream& ops, const geo_basic<T,sequential>& omega);
// ----------------------------------------------------------------------------
// bounds: for curved geometries, need to commpute it on the fly
// ----------------------------------------------------------------------------
template <class T>
struct bound_type {
// data:
point_basic<T> xmin, xmax;
T umin, umax;
// cstor:
bound_type() : xmin(), xmax(), umin(), umax() {}
// modifier:
void update (const point_basic<T>& x, const T& u) {
for (size_t i = 0; i < 3; i++) {
xmin[i] = std::min(xmin[i], x[i]);
xmax[i] = std::max(xmax[i], x[i]);
}
umin = std::min(umin, u);
umax = std::max(umax, u);
}
};
template<class T>
void
put (
std::ostream& gdat,
const geo_basic<T,sequential>& omega,
const geo_element& K,
const field_basic<T,sequential>& uh,
const fem_on_pointset<T>& fops,
size_t my_order,
bound_type<T>& bbox);
} // namespace rheolef
#endif // _RHEOLEF_SEQ_FIELD_VISU_GNUPLOT_INTERNAL_H
rheolef::point_basic
Definition: point.h:87
T
Expr1::float_type T
Definition: field_expr.h:261
rheolef
This file is part of Rheolef.
Definition: compiler_eigen.h:37
rheolef::put
void put(std::ostream &out, std::string name, const tiny_matrix< T > &a)
Definition: tiny_lu.h:155
rheolef::visu_gnuplot
odiststream & visu_gnuplot(odiststream &, const field_basic< T, sequential > &)
Definition: field_seq_visu_gnuplot.cc:461
rheolef::bound_type
Definition: field_seq_visu_gnuplot_internal.h:42
rheolef::bound_type::xmax
point_basic< T > xmax
Definition: field_seq_visu_gnuplot_internal.h:44
rheolef::bound_type::umax
T umax
Definition: field_seq_visu_gnuplot_internal.h:45
rheolef::bound_type::update
void update(const point_basic< T > &x, const T &u)
Definition: field_seq_visu_gnuplot_internal.h:49
rheolef::bound_type::xmin
point_basic< T > xmin
Definition: field_seq_visu_gnuplot_internal.h:44
rheolef::bound_type::umin
T umin
Definition: field_seq_visu_gnuplot_internal.h:45
rheolef::bound_type::bound_type
bound_type()
Definition: field_seq_visu_gnuplot_internal.h:47
u
Definition: leveque.h:25