feat: add analysis model objects
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include "fesa/material/Material.hpp"
|
||||
|
||||
namespace fesa::material {
|
||||
|
||||
class LinearElasticMaterial final : public Material {
|
||||
public:
|
||||
LinearElasticMaterial(MaterialId id, double young_modulus, double poisson_ratio);
|
||||
|
||||
MaterialId id() const noexcept override;
|
||||
double youngModulus() const noexcept;
|
||||
double poissonRatio() const noexcept;
|
||||
|
||||
private:
|
||||
MaterialId id_;
|
||||
double young_modulus_;
|
||||
double poisson_ratio_;
|
||||
};
|
||||
|
||||
} // namespace fesa::material
|
||||
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include "fesa/core/ModelTypes.hpp"
|
||||
|
||||
namespace fesa::material {
|
||||
|
||||
using fesa::core::MaterialId;
|
||||
|
||||
class Material {
|
||||
public:
|
||||
virtual ~Material() = default;
|
||||
|
||||
virtual MaterialId id() const noexcept = 0;
|
||||
};
|
||||
|
||||
} // namespace fesa::material
|
||||
Reference in New Issue
Block a user