Public Member Functions | List of all members
Lagrangian1D Class Reference

Lagrangian point motion in 1d (points move together with the fluid) More...

#include <lagrangian1d.hpp>

Inheritance diagram for Lagrangian1D:
Inheritance graph
[legend]
Collaboration diagram for Lagrangian1D:
Collaboration graph
[legend]

Public Member Functions

 Lagrangian1D (bool rigid_walls)
 Class constructor. More...
 
double operator() (size_t i, vector< double > const &vp, vector< ComputationalCell > const &hv) const
 Calculates the velocity of a vertex. More...
 

Detailed Description

Lagrangian point motion in 1d (points move together with the fluid)

Definition at line 12 of file lagrangian1d.hpp.

Constructor & Destructor Documentation

◆ Lagrangian1D()

Lagrangian1D::Lagrangian1D ( bool  rigid_walls)
explicit

Class constructor.

Parameters
rigid_wallsToggles rigid walls at the edges

Definition at line 3 of file lagrangian1d.cpp.

Member Function Documentation

◆ operator()()

double Lagrangian1D::operator() ( size_t  i,
vector< double > const &  vp,
vector< ComputationalCell > const &  hv 
) const
virtual

Calculates the velocity of a vertex.

Parameters
iVertex index
vpPointer to vertices position container
hvPointer to hydrodynamics variables container
Returns
Velocity of the vertex

Implements VertexMotion.

Definition at line 7 of file lagrangian1d.cpp.


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