![]() |
IgANet
IgANets - Isogeometric Analysis Networks
|
Specialization of the abstract IgANet class for Poisson's equation. More...
Public Member Functions | |
template<std::size_t GeometryMapNumCoeffs, std::size_t VariableNumCoeffs> | |
poisson (std::vector< int64_t > &&layers, std::vector< std::vector< std::any > > &&activations, std::array< int64_t, GeometryMapNumCoeffs > &&geometryMapNumCoeffs, std::array< int64_t, VariableNumCoeffs > &&variableNumCoeffs) | |
Constructor. | |
auto const & | collPts () const |
Returns a constant reference to the collocation points. | |
bool | epoch (int64_t epoch) override |
Initializes the epoch. | |
torch::Tensor | loss (const torch::Tensor &outputs, int64_t epoch) override |
Computes the loss function. | |
auto & | ref () |
Returns a non-constant reference to the reference solution. | |
auto const & | ref () const |
Returns a constant reference to the reference solution. | |
![]() | |
IgANet (IgANetOptions defaults={}, iganet::Options< typename Base::value_type > options=iganet::Options< typename Base::value_type >{}) | |
Default constructor. | |
Private Types | |
using | Base = iganet::IgANet< Optimizer, GeometryMap, Variable > |
Type of the base class. | |
using | Customizable = iganet::IgANetCustomizable< GeometryMap, Variable > |
Type of the customizable class. | |
Private Attributes | |
Base::variable_collPts_type | collPts_ |
Collocation points. | |
Customizable::geometryMap_interior_coeff_indices_type | G_coeff_indices_ |
Coefficient indices of the geometry map. | |
Customizable::geometryMap_interior_knot_indices_type | G_knot_indices_ |
Knot indices of the geometry map. | |
Variable | ref_ |
Reference solution. | |
Customizable::variable_interior_coeff_indices_type | var_coeff_indices_ |
Coefficient indices of variables. | |
Customizable::variable_interior_knot_indices_type | var_knot_indices_ |
Knot indices of variables. | |
Additional Inherited Members | |
![]() | |
using | Base = IgABase< GeometryMap, Variable > |
Base type. | |
using | optimizer_type = Optimizer |
Type of the optimizer. | |
![]() | |
using | geometryMap_boundary_coeff_indices_type = decltype(std::declval< GeometryMap >() .template find_coeff_indices< functionspace::boundary >(std::declval< typename GeometryMap::boundary_eval_type >())) |
Type of the coefficient indices of geometry type at the boundary. | |
using | geometryMap_boundary_knot_indices_type = decltype(std::declval< GeometryMap >() .template find_knot_indices< functionspace::boundary >(std::declval< typename GeometryMap::boundary_eval_type >())) |
Type of the knot indices of the geometry map at the boundary. | |
using | geometryMap_interior_coeff_indices_type = decltype(std::declval< GeometryMap >() .template find_coeff_indices< functionspace::interior >(std::declval< typename GeometryMap::eval_type >())) |
Type of the coefficient indices of geometry type in the interior. | |
using | geometryMap_interior_knot_indices_type = decltype(std::declval< GeometryMap >() .template find_knot_indices< functionspace::interior >(std::declval< typename GeometryMap::eval_type >())) |
Type of the knot indices of the geometry map in the interior. | |
using | variable_boundary_coeff_indices_type = decltype(std::declval< Variable >() .template find_coeff_indices< functionspace::boundary >(std::declval< typename Variable::boundary_eval_type >())) |
Type of the coefficient indices of variable type at the boundary. | |
using | variable_boundary_knot_indices_type = decltype(std::declval< Variable >() .template find_knot_indices< functionspace::boundary >(std::declval< typename Variable::boundary_eval_type >())) |
Type of the knot indices of boundary_eval_type type at the boundary. | |
using | variable_interior_coeff_indices_type = decltype(std::declval< Variable >() .template find_coeff_indices< functionspace::interior >(std::declval< typename Variable::eval_type >())) |
Type of the coefficient indices of variable type in the interior. | |
using | variable_interior_knot_indices_type = decltype(std::declval< Variable >() .template find_knot_indices< functionspace::interior >(std::declval< typename Variable::eval_type >())) |
Type of the knot indices of the variables in the interior. | |
![]() | |
IgANetGenerator< typename Base::value_type > | net_ |
IgANet generator. | |
Optimizer | opt_ |
Optimizer. | |
IgANetOptions | options_ |
Options. | |
Specialization of the abstract IgANet class for Poisson's equation.
|
private |
Type of the base class.
|
private |
Type of the customizable class.
|
inline |
Constructor.
|
inline |
Returns a constant reference to the collocation points.
|
inlineoverridevirtual |
Initializes the epoch.
[in] | epoch | Epoch number |
Implements iganet::IgANet< Optimizer, GeometryMap, Variable, IgABase >.
|
inlineoverridevirtual |
Computes the loss function.
[in] | outputs | Output of the network |
[in] | epoch | Epoch number |
Implements iganet::IgANet< Optimizer, GeometryMap, Variable, IgABase >.
|
inline |
Returns a non-constant reference to the reference solution.
|
inline |
Returns a constant reference to the reference solution.
|
private |
Collocation points.
|
private |
Coefficient indices of the geometry map.
|
private |
Knot indices of the geometry map.
|
private |
Reference solution.
|
private |
Coefficient indices of variables.
|
private |
Knot indices of variables.