|
Nektar++
|
#include <boost/test/included/unit_test.hpp>#include <algorithm>#include <array>#include <cmath>#include <cstdlib>#include <cstring>#include <string>#include <utility>#include <vector>#include <LibUtilities/BasicUtils/SessionReader.h>#include <MultiRegions/ContField.h>#include <SpatialDomains/MeshGraphIO.h>#include <IncNavierStokesSolverRedesign/BoundaryConditions/HOPressureBndCond/HOPressureBndCondOp.hpp>#include <LibUtilities/Backends/Backends.hpp>#include <LibUtilities/BasicUtils/Field/Field.hpp>#include <LibUtilities/BasicUtils/StringUtils.hpp>Go to the source code of this file.
Classes | |
| struct | GlobalConfiguration |
Macros | |
| #define | BOOST_TEST_MODULE TestHOPressureBndCond |
| #define | NOMINMAX |
Functions | |
| BOOST_TEST_GLOBAL_CONFIGURATION (GlobalConfiguration) | |
| BOOST_AUTO_TEST_CASE (factory_create_and_empty_apply_preserves_rhs) | |
| BOOST_AUTO_TEST_CASE (update_then_apply_zero_contribution_preserves_rhs) | |
| BOOST_AUTO_TEST_CASE (update_then_apply_manufactured_boundary_flux) | |
| BOOST_AUTO_TEST_CASE (update_then_apply_acceleration_boundary_flux) | |
| BOOST_AUTO_TEST_CASE (update_then_apply_interleaved_matches_width_one) | |
| BOOST_AUTO_TEST_CASE (update_then_apply_kovasznay_boundary_flux) | |
| BOOST_AUTO_TEST_CASE (update_then_apply_kovasznay_discrete_boundary_velocity) | |
| BOOST_AUTO_TEST_CASE (update_then_apply_selection_respects_hop_tag) | |
| BOOST_AUTO_TEST_CASE (update_then_apply_neumann_velocity_boundary_flux) | |
| BOOST_AUTO_TEST_CASE (update_weak_then_apply_neumann_velocity_boundary_flux) | |
| BOOST_AUTO_TEST_CASE (set_velocity_context_throws_for_different_quadrature) | |
| #define BOOST_TEST_MODULE TestHOPressureBndCond |
Definition at line 35 of file TestHOPressureBndCond.cpp.
| #define NOMINMAX |
Definition at line 38 of file TestHOPressureBndCond.cpp.
| BOOST_AUTO_TEST_CASE | ( | factory_create_and_empty_apply_preserves_rhs | ) |
Definition at line 342 of file TestHOPressureBndCond.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::HOPressureBndCondOp< TData >::Create(), Nektar::Collections::eNoCollection, Nektar::MultiRegions::GetBlockAttributes< double, FieldState::Coeff >(), graph, Nektar::LibUtilities::Field< TData, TState >::Initialize(), Nektar::SpatialDomains::MeshGraphIO::Read(), session, and Nektar::LibUtilities::Field< TData, TState >::ToVector().
| BOOST_AUTO_TEST_CASE | ( | set_velocity_context_throws_for_different_quadrature | ) |
Definition at line 1193 of file TestHOPressureBndCond.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::HOPressureBndCondOp< TData >::Create(), Nektar::Collections::eNoCollection, graph, Nektar::SpatialDomains::MeshGraphIO::Read(), and session.
| BOOST_AUTO_TEST_CASE | ( | update_then_apply_acceleration_boundary_flux | ) |
Definition at line 583 of file TestHOPressureBndCond.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::HOPressureBndCondOp< TData >::Create(), Nektar::Collections::eNoCollection, Nektar::MultiRegions::GetBlockAttributes< double, FieldState::Coeff >(), Nektar::MultiRegions::GetBlockAttributes< double, FieldState::Phys >(), Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), graph, Nektar::LibUtilities::Field< TData, TState >::Initialize(), Nektar::SpatialDomains::MeshGraphIO::Read(), session, and Nektar::LibUtilities::Field< TData, TState >::ToVector().
| BOOST_AUTO_TEST_CASE | ( | update_then_apply_interleaved_matches_width_one | ) |
Definition at line 673 of file TestHOPressureBndCond.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::LibUtilities::Field< TData, TState >::CopyVector(), Nektar::HOPressureBndCondOp< TData >::Create(), Nektar::Collections::eNoCollection, Nektar::MultiRegions::GetBlockAttributes< double, FieldState::Coeff >(), Nektar::MultiRegions::GetBlockAttributes< double, FieldState::Phys >(), Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), graph, Nektar::LibUtilities::Field< TData, TState >::Initialize(), Nektar::SpatialDomains::MeshGraphIO::Read(), session, Nektar::LibUtilities::Field< TData, TState >::SetInterleaveWidth(), and Nektar::LibUtilities::Field< TData, TState >::ToVector().
| BOOST_AUTO_TEST_CASE | ( | update_then_apply_kovasznay_boundary_flux | ) |
Definition at line 778 of file TestHOPressureBndCond.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::HOPressureBndCondOp< TData >::Create(), Nektar::SpatialDomains::eNeumann, Nektar::Collections::eNoCollection, Nektar::MultiRegions::GetBlockAttributes< double, FieldState::Coeff >(), Nektar::MultiRegions::GetBlockAttributes< double, FieldState::Phys >(), Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::MultiRegions::GetCollection(), graph, id, Nektar::LibUtilities::Field< TData, TState >::Initialize(), Nektar::SpatialDomains::MeshGraphIO::Read(), session, and Nektar::LibUtilities::Field< TData, TState >::ToVector().
| BOOST_AUTO_TEST_CASE | ( | update_then_apply_kovasznay_discrete_boundary_velocity | ) |
Definition at line 951 of file TestHOPressureBndCond.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::HOPressureBndCondOp< TData >::Create(), Nektar::Collections::eNoCollection, Nektar::MultiRegions::GetBlockAttributes< double, FieldState::Coeff >(), Nektar::MultiRegions::GetBlockAttributes< double, FieldState::Phys >(), Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::MultiRegions::GetCollection(), graph, Nektar::LibUtilities::Field< TData, TState >::Initialize(), Nektar::SpatialDomains::MeshGraphIO::Read(), session, and Nektar::LibUtilities::Field< TData, TState >::ToVector().
| BOOST_AUTO_TEST_CASE | ( | update_then_apply_manufactured_boundary_flux | ) |
Definition at line 431 of file TestHOPressureBndCond.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::HOPressureBndCondOp< TData >::Create(), Nektar::Collections::eNoCollection, Nektar::MultiRegions::GetBlockAttributes< double, FieldState::Coeff >(), Nektar::MultiRegions::GetBlockAttributes< double, FieldState::Phys >(), Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::MultiRegions::GetCollection(), Nektar::MultiRegions::Operator< TData >::GetOpExecSpace(), graph, id, Nektar::LibUtilities::Field< TData, TState >::Initialize(), Nektar::SpatialDomains::MeshGraphIO::Read(), Nektar::LibUtilities::Field< TData, TState >::ReshapeStorage(), session, and Nektar::LibUtilities::Field< TData, TState >::ToVector().
| BOOST_AUTO_TEST_CASE | ( | update_then_apply_neumann_velocity_boundary_flux | ) |
Definition at line 1176 of file TestHOPressureBndCond.cpp.
| BOOST_AUTO_TEST_CASE | ( | update_then_apply_selection_respects_hop_tag | ) |
Definition at line 1061 of file TestHOPressureBndCond.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::HOPressureBndCondOp< TData >::Create(), Nektar::Collections::eNoCollection, Nektar::MultiRegions::GetBlockAttributes< double, FieldState::Coeff >(), Nektar::MultiRegions::GetBlockAttributes< double, FieldState::Phys >(), Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::MultiRegions::GetCollection(), graph, id, Nektar::LibUtilities::Field< TData, TState >::Initialize(), Nektar::SpatialDomains::MeshGraphIO::Read(), session, and Nektar::LibUtilities::Field< TData, TState >::ToVector().
| BOOST_AUTO_TEST_CASE | ( | update_then_apply_zero_contribution_preserves_rhs | ) |
Definition at line 374 of file TestHOPressureBndCond.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::HOPressureBndCondOp< TData >::Create(), Nektar::Collections::eNoCollection, Nektar::MultiRegions::GetBlockAttributes< double, FieldState::Coeff >(), Nektar::MultiRegions::GetBlockAttributes< double, FieldState::Phys >(), graph, Nektar::LibUtilities::Field< TData, TState >::Initialize(), Nektar::SpatialDomains::MeshGraphIO::Read(), session, and Nektar::LibUtilities::Field< TData, TState >::ToVector().
| BOOST_AUTO_TEST_CASE | ( | update_weak_then_apply_neumann_velocity_boundary_flux | ) |
Definition at line 1185 of file TestHOPressureBndCond.cpp.
| BOOST_TEST_GLOBAL_CONFIGURATION | ( | GlobalConfiguration | ) |