feat: add domain model foundation

This commit is contained in:
김경종
2026-06-08 16:40:04 +09:00
parent e4e2f57808
commit fdeac602f4
38 changed files with 2685 additions and 5 deletions
+25
View File
@@ -0,0 +1,25 @@
#include "fesa/core/LoadDefinition.hpp"
namespace {
int require(bool condition) {
return condition ? 0 : 1;
}
} // namespace
int run_load_definition_tests() {
const fesa::core::NodalLoadDefinition load{1, fesa::core::Dof::U3, -100.0};
if (const int result = require(load.nodeId() == 1); result != 0) {
return result;
}
if (const int result = require(load.dof() == fesa::core::Dof::U3); result != 0) {
return result;
}
if (const int result = require(load.value() == -100.0); result != 0) {
return result;
}
return 0;
}