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

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

#include <Vortex2D.h>

Collaboration diagram for Vortex2D:

Public Member Functions

 Vortex2D ()=default
 Пустой конструктор
HD Vortex2D (const Point2D &_r, const double _g, const double _sgm)
 Конструктор инициализации
HD ~Vortex2D ()
 Деструктор
HD Point2D & r ()
 Функция для доступа к радиус-вектору вихря
HD const Point2D & r () const
 Функция для доступа для чтения к радиус-вектору вихря
HD double & g ()
 Функция для доступа к циркуляции вихря
HD const double & g () const
 Функция для доступа для чтения к циркуляции вихря
HD double & sigma ()
 Функция для доступа к радиусу вихря
HD const double & sigma () 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)
static size_t offsSgm = offsetof(Vortex2D, sgm)

Private Attributes

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

Detailed Description

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

Author
Марчевский Илья Константинович
Сокол Ксения Сергеевна
Рятина Евгения Павловна
Колганова Александра Олеговна
Version
1.14
Date
6 марта 2026 г.

Definition at line 58 of file Vortex2D.h.

Constructor & Destructor Documentation

◆ Vortex2D() [1/2]

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

◆ Vortex2D() [2/2]

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

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

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

Definition at line 84 of file Vortex2D.h.

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

◆ ~Vortex2D()

Деструктор

Definition at line 88 of file Vortex2D.h.

88{};

Member Function Documentation

◆ g() [1/2]

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

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

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

Definition at line 100 of file Vortex2D.h.

100{ return gam; }
double gam
Циркуляция вихря
Definition Vortex2D.h:65

◆ g() [2/2]

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

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

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

Definition at line 104 of file Vortex2D.h.

104{ return gam; }

◆ operator const Point2D &()

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

Definition at line 115 of file Vortex2D.h.

115{ return pos; }
Point2D pos
Радиус-вектор вихря
Definition Vortex2D.h:62

◆ operator Point2D &()

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

Definition at line 114 of file Vortex2D.h.

114{ return pos; }

◆ r() [1/2]

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

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

Definition at line 92 of file Vortex2D.h.

92{ return pos; }

◆ r() [2/2]

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

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

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

Definition at line 96 of file Vortex2D.h.

96{ return pos; }

◆ sigma() [1/2]

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

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

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

Definition at line 108 of file Vortex2D.h.

108{ return sgm; }
double sgm
Радиус вихря
Definition Vortex2D.h:68

◆ sigma() [2/2]

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

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

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

Definition at line 112 of file Vortex2D.h.

112{ return sgm; }

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 73 of file Vortex2D.h.

◆ offsPos

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

Definition at line 72 of file Vortex2D.h.

◆ offsSgm

size_t Vortex2D::offsSgm = offsetof(Vortex2D, sgm)
static

Definition at line 74 of file Vortex2D.h.

◆ pos

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

Definition at line 62 of file Vortex2D.h.

◆ sgm

double VMlib::Vortex2D::sgm
private

Радиус вихря

Definition at line 68 of file Vortex2D.h.


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