![]() |
Nalu
Nalu: a generalized unstructured massively parallel low Mach flow code designed to support a variety of energy applications of interest (most notably Wind ECP) built on the Sierra Toolkit and Trilinos solver Tpetra/Epetra stack. The open source BSD, clause 3 license model has been chosen for the code base. See LICENSE for more information. http://NaluCFD.org
|
#include <BSpline.h>
Public Member Functions | |
| BSpline2D (const int order, const std::vector< double > &indepVars1, const std::vector< double > &indepVars2, const std::vector< double > &depVars, const bool allowClipping=true) | |
| Construct a 2-D Bspline of the requested order. More... | |
| BSpline2D (const bool allowClipping=true) | |
| Construct a skeletal 2D spline. More... | |
| BSpline2D (const BSpline2D &) | |
| Copy constructor - performs deep copies. More... | |
| BSpline * | clone () const |
| copy this object and return a BSpline pointer More... | |
| ~BSpline2D () | |
| double | value (const double *indepVar) const |
| Evaluate the dependent variable via interpolation at the given value of the dependent variable. More... | |
| void | write_hdf5 (H5IO &io) const |
| Write a spline to an HDF5 database. More... | |
| void | read_hdf5 (H5IO &io) |
| Read a spline from an HDF5 database. More... | |
| bool | operator== (const BSpline2D &a) const |
| bool | operator!= (const BSpline2D &a) const |
Public Member Functions inherited from sierra::nalu::BSpline | |
| BSpline (const int order, const int dimension, const bool enableValueClipping=true) | |
| virtual | ~BSpline () |
| int | get_order () const |
| Query the order of accuracy for this spline. More... | |
| int | get_dimension () const |
| Query the dimensionality of this spline (number of independent variables) More... | |
| double | value (std::vector< double > &x) const |
Private Member Functions | |
| void | compute_control_pts (const std::vector< double > &indepVars1, const std::vector< double > &indepVars2, const std::vector< double > &depVars) |
| BSpline2D & | operator= (const BSpline2D &) |
Private Attributes | |
| std::vector< const BSpline1D * > | dim2Splines_ |
| BSpline1D * | sp1_ |
Additional Inherited Members | |
Protected Attributes inherited from sierra::nalu::BSpline | |
| int | order_ |
| const int | dim_ |
| const bool | enableValueClipping_ |
2-D B-splines for STRUCTURED data
| sierra::nalu::BSpline2D::BSpline2D | ( | const int | order, |
| const std::vector< double > & | indepVars1, | ||
| const std::vector< double > & | indepVars2, | ||
| const std::vector< double > & | depVars, | ||
| const bool | allowClipping = true |
||
| ) |
Construct a 2-D Bspline of the requested order.
| order | : Order of accuracy for interpolant (order-1 continuous derivatives) |
| indepVars1 | : std::vector of independent variables in the first dimension |
| indepVars2 | : std::vector of independent variables in the second dimension |
| depVars | : std::vector of dependent variables at each point on the mesh implied by indepVars1 and indepVars2, with fortran-style ordering (first dimension varies fastest) |
References compute_control_pts().
| sierra::nalu::BSpline2D::BSpline2D | ( | const bool | allowClipping = true | ) |
Construct a skeletal 2D spline.
Useful when loading splined data from disk.
| sierra::nalu::BSpline2D::BSpline2D | ( | const BSpline2D & | src | ) |
Copy constructor - performs deep copies.
References dim2Splines_, and sp1_.
| sierra::nalu::BSpline2D::~BSpline2D | ( | ) |
References dim2Splines_, and sp1_.
|
inlinevirtual |
copy this object and return a BSpline pointer
Implements sierra::nalu::BSpline.
References sierra::nalu::BSpline::read_hdf5(), sierra::nalu::BSpline::value(), and sierra::nalu::BSpline::write_hdf5().
|
private |
References dim2Splines_, sierra::nalu::BSpline::enableValueClipping_, sierra::nalu::BSpline1D::get_control_pts(), sierra::nalu::BSpline::order_, and sp1_.
Referenced by BSpline2D().
|
inline |
|
inline |
References dim2Splines_, and sp1_.
|
virtual |
Read a spline from an HDF5 database.
The file should be opened and an hdf5 "group" specified. This spline will be read from the specified group.
Implements sierra::nalu::BSpline.
References dim2Splines_, sierra::nalu::BSpline::enableValueClipping_, sierra::nalu::H5IO::open_group(), sierra::nalu::H5IO::read_attribute(), sierra::nalu::BSpline1D::read_hdf5(), and sp1_.
Referenced by sierra::nalu::BSpline3D::read_hdf5().
|
virtual |
Evaluate the dependent variable via interpolation at the given value of the dependent variable.
Ordering is [x1,x2]
Implements sierra::nalu::BSpline.
References dim2Splines_, sierra::nalu::BSpline::enableValueClipping_, sierra::nalu::find_indx(), sierra::nalu::BSpline1D::get_control_pts(), sierra::nalu::BSpline1D::get_knot_vector(), sierra::nalu::BSpline1D::get_maxval(), sierra::nalu::BSpline1D::get_minval(), sierra::nalu::BSpline1D::get_npts(), sierra::nalu::BSpline::get_order(), sierra::nalu::get_uk(), sp1_, and sierra::nalu::BSpline1D::value().
|
virtual |
Write a spline to an HDF5 database.
The file should be opened and an hdf5 "group" created. This spline will be written to the specified group.
Implements sierra::nalu::BSpline.
References sierra::nalu::H5IO::create_group(), dim2Splines_, sp1_, sierra::nalu::H5IO::write_attribute(), and sierra::nalu::BSpline1D::write_hdf5().
|
private |
Referenced by BSpline2D(), compute_control_pts(), operator==(), read_hdf5(), value(), write_hdf5(), and ~BSpline2D().
|
private |
Referenced by BSpline2D(), compute_control_pts(), operator==(), read_hdf5(), value(), write_hdf5(), and ~BSpline2D().
1.8.11