VM2D 1.14
Vortex methods for 2D flows simulation
Loading...
Searching...
No Matches
VMlib::Vortex2D Class Reference

Класс, опеделяющий двумерный вихревой элемент
More...

#include <Vortex2D.h>

Inheritance diagram for VMlib::Vortex2D:
Collaboration diagram for VMlib::Vortex2D:

Public Member Functions

 Vortex2D ()=default
 Пустой конструктор
 
HD Vortex2D (const Point2D &_r, const double _g)
 Конструктор инициализации
 
HD ~Vortex2D ()
 Деструктор
 
HD Point2Dr ()
 Функция для доступа к радиус-вектору вихря
 
HD const Point2Dr () const
 Функция для доступа для чтения к радиус-вектору вихря
 
HD double & g ()
 Функция для доступа к циркуляции вихря
 
HD const double & g () const
 Функция для доступа для чтения к циркуляции вихря
 
HD operator Point2D & ()
 
HD operator const Point2D & () const
 

Static Public Attributes

static size_t offsPos = offsetof(Vortex2D, pos)
 
static size_t offsGam = offsetof(Vortex2D, gam)
 

Private Attributes

Point2D pos
 Радиус-вектор вихря
 
double gam
 Циркуляция вихря
 

Detailed Description

Класс, опеделяющий двумерный вихревой элемент

Author
Марчевский Илья Константинович
Сокол Ксения Сергеевна
Рятина Евгения Павловна
Колганова Александра Олеговна

\Version 1.14

Date
6 марта 2026 г.

Definition at line 58 of file Vortex2D.h.

Constructor & Destructor Documentation

◆ Vortex2D() [1/2]

VMlib::Vortex2D::Vortex2D ( )
default

Пустой конструктор

◆ Vortex2D() [2/2]

HD VMlib::Vortex2D::Vortex2D ( const Point2D _r,
const double  _g 
)
inline

Конструктор инициализации

Parameters
[in]_rконстантная ссылка на радиус-вектор положения вихря
[in]_gциркуляция (интенсивность) вихря

Definition at line 79 of file Vortex2D.h.

80 : pos(_r), gam(_g) {};
Point2D pos
Радиус-вектор вихря
Definition Vortex2D.h:62
double gam
Циркуляция вихря
Definition Vortex2D.h:65

◆ ~Vortex2D()

HD VMlib::Vortex2D::~Vortex2D ( )
inline

Деструктор

Definition at line 83 of file Vortex2D.h.

83{};

Member Function Documentation

◆ g() [1/2]

HD double & VMlib::Vortex2D::g ( )
inline

Функция для доступа к циркуляции вихря

Returns
ссылка на циркуляцию вихря

Definition at line 95 of file Vortex2D.h.

95{ return gam; }
Here is the caller graph for this function:

◆ g() [2/2]

HD const double & VMlib::Vortex2D::g ( ) const
inline

Функция для доступа для чтения к циркуляции вихря

Returns
константная ссылка на циркуляцию вихря

Definition at line 99 of file Vortex2D.h.

99{ return gam; }

◆ operator const Point2D &()

HD VMlib::Vortex2D::operator const Point2D & ( ) const
inline

Definition at line 102 of file Vortex2D.h.

102{ return pos; }

◆ operator Point2D &()

HD VMlib::Vortex2D::operator Point2D & ( )
inline

Definition at line 101 of file Vortex2D.h.

101{ return pos; }

◆ r() [1/2]

HD Point2D & VMlib::Vortex2D::r ( )
inline

Функция для доступа к радиус-вектору вихря

Returns
ссылка на радиус-вектор вихря

Definition at line 87 of file Vortex2D.h.

87{ return pos; }
Here is the caller graph for this function:

◆ r() [2/2]

HD const Point2D & VMlib::Vortex2D::r ( ) const
inline

Функция для доступа для чтения к радиус-вектору вихря

Returns
константная ссылка на радиус-вектор вихря

Definition at line 91 of file Vortex2D.h.

91{ return pos; }

Member Data Documentation

◆ gam

double VMlib::Vortex2D::gam
private

Циркуляция вихря

Definition at line 65 of file Vortex2D.h.

◆ offsGam

size_t Vortex2D::offsGam = offsetof(Vortex2D, gam)
static

Definition at line 70 of file Vortex2D.h.

◆ offsPos

size_t Vortex2D::offsPos = offsetof(Vortex2D, pos)
static

Definition at line 69 of file Vortex2D.h.

◆ pos

Point2D VMlib::Vortex2D::pos
private

Радиус-вектор вихря

Definition at line 62 of file Vortex2D.h.


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