25#ifndef _MODELS_VERTEX_SOLVER_ACTORS_TFSURFACETRACTION_H_
26#define _MODELS_VERTEX_SOLVER_ACTORS_TFSURFACETRACTION_H_
33namespace TissueForge::models::vertex {
49 virtual std::string
name()
const override {
return "SurfaceTraction"; }
52 static std::string
actorName() {
return "SurfaceTraction"; }
The mesh surface is an area-enclosed object of implicit mesh edges defined by mesh vertices.
Definition tfSurface.h:65
The mesh vertex is a volume of a mesh centered at a point in a space.
Definition tfVertex.h:71
Base definition of how a mesh object acts on another mesh object.
Definition tfMeshObj.h:97
Models a traction force.
Definition tfSurfaceTraction.h:39
static std::string actorName()
Definition tfSurfaceTraction.h:52
static SurfaceTraction * fromString(const std::string &str)
Create from a JSON string representation.
virtual std::string name() const override
Definition tfSurfaceTraction.h:49
FVector3 force(const Surface *source, const Vertex *target) override
Calculate the force that a source object exerts on a target object.
FloatP_t energy(const Surface *source, const Vertex *target) override
Calculate the energy of a source object acting on a target object.
FVector3 comps
Definition tfSurfaceTraction.h:42