feat: add analysis model objects
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
namespace fesa::boundary {
|
||||
|
||||
enum class BoundaryConditionKind {
|
||||
SinglePointConstraint
|
||||
};
|
||||
|
||||
class BoundaryCondition {
|
||||
public:
|
||||
virtual ~BoundaryCondition() = default;
|
||||
|
||||
virtual BoundaryConditionKind kind() const noexcept = 0;
|
||||
};
|
||||
|
||||
} // namespace fesa::boundary
|
||||
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include "fesa/boundary/BoundaryCondition.hpp"
|
||||
#include "fesa/core/ModelTypes.hpp"
|
||||
|
||||
namespace fesa::boundary {
|
||||
|
||||
using fesa::core::Dof;
|
||||
using fesa::core::NodeId;
|
||||
|
||||
class SinglePointConstraint final : public BoundaryCondition {
|
||||
public:
|
||||
SinglePointConstraint(NodeId node_id, Dof dof, double value);
|
||||
|
||||
BoundaryConditionKind kind() const noexcept override;
|
||||
NodeId nodeId() const noexcept;
|
||||
Dof dof() const noexcept;
|
||||
double value() const noexcept;
|
||||
|
||||
private:
|
||||
NodeId node_id_;
|
||||
Dof dof_;
|
||||
double value_;
|
||||
};
|
||||
|
||||
} // namespace fesa::boundary
|
||||
Reference in New Issue
Block a user