FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
NetNodeStates Class Referenceabstract

#include <NetNodeStates.h>

+ Inheritance diagram for NetNodeStates:

Public Member Functions

virtual NetNodeLayout Layout () const =0
 Where each node's position and velocity sit in X. Called once, from NetCore::FinalSetup.
 
virtual void AddExternalForces (double T, const double *X, double *nodeForce) const =0
 
virtual void TakeNodeForces (double T, const double *X, const double *nodeForce, double *XDot) const =0
 

Detailed Description

What the net core needs from the structure that owns the nodes.

Member Function Documentation

◆ AddExternalForces()

virtual void NetNodeStates::AddExternalForces ( double  T,
const double *  X,
double *  nodeForce 
) const
pure virtual

Adds the forces from outside the net (input ports) to nodeForce. Once per evaluation, after the panel and cable loads and before bottom contact.

Parameters
[in]TTime [s].
[in]XThe global state vector.
[in,out]nodeForce3 per node [N].

Implemented in NetStructure, and NetStructureWithConstraints.

◆ Layout()

virtual NetNodeLayout NetNodeStates::Layout ( ) const
pure virtual

◆ TakeNodeForces()

virtual void NetNodeStates::TakeNodeForces ( double  T,
const double *  X,
const double *  nodeForce,
double *  XDot 
) const
pure virtual

Takes the summed node forces of the evaluation: the state derivatives of the free nodes, and for the constraint solver also the forces handed to the rigid elements and the solver step. Once per evaluation, last.

Parameters
[in]TTime [s].
[in]XThe global state vector.
[in]nodeForce3 per node [N].
[out]XDotThe state derivatives.

Implemented in NetStructure, and NetStructureWithConstraints.


The documentation for this class was generated from the following file: