feat(stroid): first working version
stroid generates o-grid topologies with proper boundary conditions applied. Currently the external domain does not work, this will be addressed in the next commit.
This commit is contained in:
1
tests/meson.build
Normal file
1
tests/meson.build
Normal file
@@ -0,0 +1 @@
|
||||
subdir('stroid_sandbox')
|
||||
27
tests/stroid_sandbox/main.cpp
Normal file
27
tests/stroid_sandbox/main.cpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#include <print>
|
||||
#include "stroid/topology/topology.h"
|
||||
#include "stroid/config/config.h"
|
||||
#include "stroid/IO/mesh.h"
|
||||
#include <memory>
|
||||
#include "mfem.hpp"
|
||||
#include "stroid/topology/curvilinear.h"
|
||||
#include "stroid/utils/mesh_utils.h"
|
||||
|
||||
#include "fourdst/config/config.h"
|
||||
|
||||
int main() {
|
||||
const fourdst::config::Config<stroid::config::MeshConfig> cfg;
|
||||
|
||||
const std::unique_ptr<mfem::Mesh> mesh = stroid::topology::BuildSkeleton(cfg);
|
||||
stroid::topology::Finalize(*mesh, cfg);
|
||||
stroid::topology::PromoteToHighOrder(*mesh, cfg);
|
||||
stroid::topology::ProjectMesh(*mesh, cfg);
|
||||
//
|
||||
// stroid::utils::MarkFlippedElements(*mesh);
|
||||
// stroid::utils::MarkFlippedBoundaryElements(*mesh);
|
||||
|
||||
|
||||
stroid::IO::ViewMesh(*mesh, "Spheroidal Mesh", stroid::IO::VISUALIZATION_MODE::BOUNDARY_ELEMENT_ID);
|
||||
// stroid::IO::VisualizeFaceValence(*mesh);
|
||||
// stroid::IO::SaveVTU(*mesh, "SpheroidalMesh");
|
||||
}
|
||||
1
tests/stroid_sandbox/meson.build
Normal file
1
tests/stroid_sandbox/meson.build
Normal file
@@ -0,0 +1 @@
|
||||
executable('stroid_sandbox', 'main.cpp', dependencies: stroid_dep)
|
||||
Reference in New Issue
Block a user