VM2D 1.14
Vortex methods for 2D flows simulation
Loading...
Searching...
No Matches
VM2D::PhysicalProperties Struct Reference

Структура, задающая физические свойства задачи More...

#include <Passport2D.h>

Collaboration diagram for VM2D::PhysicalProperties:

Public Member Functions

double accelCft (double currentTime) const
 Функция-множитель, позволяющая моделировать разгон
 
Point2D V0 (double currentTime) const
 Функция скорости набегающего потока с учетом разгона
 
 PhysicalProperties (const VMlib::TimeDiscretizationProperties &timeProp_)
 

Public Attributes

double rho
 Плотность потока
 
Point2D vInf
 Скоростью набегающего потока

 
double vRef
 Референсная скорость
 
std::pair< std::string, int > typeAccel
 Способ разгона потока
 
double timeAccel
 Время разгона потока
 
double nu
 Коэффициент кинематической вязкости среды
 

Private Attributes

const VMlib::TimeDiscretizationPropertiestimeProp
 

Detailed Description

Структура, задающая физические свойства задачи

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

Definition at line 68 of file Passport2D.h.

Constructor & Destructor Documentation

◆ PhysicalProperties()

VM2D::PhysicalProperties::PhysicalProperties ( const VMlib::TimeDiscretizationProperties timeProp_)
inline

Definition at line 101 of file Passport2D.h.

102 :timeProp(timeProp_)
103 {
104 rho = 1.0;
105 nu = 0.0;
106 vRef = 1.0;
107 timeAccel = 0.0;
108 };
const VMlib::TimeDiscretizationProperties & timeProp
Definition Passport2D.h:71
double vRef
Референсная скорость
Definition Passport2D.h:81
double nu
Коэффициент кинематической вязкости среды
Definition Passport2D.h:99
double timeAccel
Время разгона потока
Definition Passport2D.h:87
double rho
Плотность потока
Definition Passport2D.h:75

Member Function Documentation

◆ accelCft()

double PhysicalProperties::accelCft ( double  currentTime) const

Функция-множитель, позволяющая моделировать разгон

Definition at line 50 of file Passport2D.cpp.

51{
52 switch (typeAccel.second)
53 {
54 case 0: //импульсный старт
55 return 1.0;
56 case 1: //разгон потока по линейному закону
57 return (currentTime < timeAccel) ? (currentTime / timeAccel) : 1.0;
58 case 2: //разгон потока по косинусоиде
59 return (currentTime < timeAccel) ? 0.5 * (1.0 - cos(PI * currentTime / timeAccel)) : 1.0;
60 }
61
62 return 1.0;
63}//accelCft()
const double PI
Число .
Definition defs.h:82
std::pair< std::string, int > typeAccel
Способ разгона потока
Definition Passport2D.h:84
Here is the caller graph for this function:

◆ V0()

Point2D VM2D::PhysicalProperties::V0 ( double  currentTime) const
inline

Функция скорости набегающего потока с учетом разгона

Definition at line 93 of file Passport2D.h.

94 {
95 return static_cast<Point2D>(accelCft(currentTime) * vInf);
96 };
double accelCft(double currentTime) const
Функция-множитель, позволяющая моделировать разгон
Point2D vInf
Скоростью набегающего потока
Definition Passport2D.h:78
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ nu

double VM2D::PhysicalProperties::nu

Коэффициент кинематической вязкости среды

Definition at line 99 of file Passport2D.h.

◆ rho

double VM2D::PhysicalProperties::rho

Плотность потока

Definition at line 75 of file Passport2D.h.

◆ timeAccel

double VM2D::PhysicalProperties::timeAccel

Время разгона потока

Definition at line 87 of file Passport2D.h.

◆ timeProp

const VMlib::TimeDiscretizationProperties& VM2D::PhysicalProperties::timeProp
private

Definition at line 71 of file Passport2D.h.

◆ typeAccel

std::pair<std::string, int> VM2D::PhysicalProperties::typeAccel

Способ разгона потока

Definition at line 84 of file Passport2D.h.

◆ vInf

Point2D VM2D::PhysicalProperties::vInf

Скоростью набегающего потока

Definition at line 78 of file Passport2D.h.

◆ vRef

double VM2D::PhysicalProperties::vRef

Референсная скорость

Definition at line 81 of file Passport2D.h.


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