File multiphaseEulerPbeFoam/multiphaseDisperseSystem/diameterModels/constantDiameter/constantDiameter.C changed (mode: 100644) (index 88b867f..3b26c43) |
... |
... |
namespace Foam |
32 |
32 |
{ |
{ |
33 |
33 |
namespace diameterModels |
namespace diameterModels |
34 |
34 |
{ |
{ |
35 |
|
defineTypeNameAndDebug(constant, 0); |
|
|
35 |
|
defineTypeNameAndDebug(constantQBMM, 0); |
36 |
36 |
|
|
37 |
37 |
addToRunTimeSelectionTable |
addToRunTimeSelectionTable |
38 |
38 |
( |
( |
39 |
39 |
diameterModel, |
diameterModel, |
40 |
|
constant, |
|
|
40 |
|
constantQBMM, |
41 |
41 |
dictionary |
dictionary |
42 |
42 |
); |
); |
43 |
43 |
} |
} |
|
... |
... |
namespace diameterModels |
46 |
46 |
|
|
47 |
47 |
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // |
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // |
48 |
48 |
|
|
49 |
|
Foam::diameterModels::constant::constant |
|
|
49 |
|
Foam::diameterModels::constantQBMM::constantQBMM |
50 |
50 |
( |
( |
51 |
51 |
const dictionary& dict, |
const dictionary& dict, |
52 |
52 |
const phaseModel& phase |
const phaseModel& phase |
|
... |
... |
Foam::diameterModels::constant::constant |
59 |
59 |
|
|
60 |
60 |
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // |
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // |
61 |
61 |
|
|
62 |
|
Foam::diameterModels::constant::~constant() |
|
|
62 |
|
Foam::diameterModels::constantQBMM::~constantQBMM() |
63 |
63 |
{} |
{} |
64 |
64 |
|
|
65 |
65 |
|
|
66 |
66 |
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // |
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // |
67 |
67 |
|
|
68 |
|
Foam::tmp<Foam::volScalarField> Foam::diameterModels::constant::d() const |
|
|
68 |
|
Foam::tmp<Foam::volScalarField> Foam::diameterModels::constantQBMM::d() const |
69 |
69 |
{ |
{ |
70 |
70 |
return tmp<Foam::volScalarField> |
return tmp<Foam::volScalarField> |
71 |
71 |
( |
( |
File multiphaseEulerPbeFoam/multiphaseDisperseSystem/diameterModels/constantDiameter/constantDiameter.H changed (mode: 100644) (index 4a63c2b..44b2a5b) |
... |
... |
License |
22 |
22 |
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. |
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. |
23 |
23 |
|
|
24 |
24 |
Class |
Class |
25 |
|
Foam::constant |
|
|
25 |
|
Foam::constantQBMM |
26 |
26 |
|
|
27 |
27 |
Description |
Description |
28 |
28 |
Constant dispersed-phase particle diameter model. |
Constant dispersed-phase particle diameter model. |
29 |
29 |
|
|
30 |
30 |
SourceFiles |
SourceFiles |
31 |
|
constant.C |
|
|
31 |
|
constantDiameter.C |
32 |
32 |
|
|
33 |
33 |
\*---------------------------------------------------------------------------*/ |
\*---------------------------------------------------------------------------*/ |
34 |
34 |
|
|
35 |
|
#ifndef constant_H |
|
36 |
|
#define constant_H |
|
|
35 |
|
#ifndef constantQBMM_H |
|
36 |
|
#define constantQBMM_H |
37 |
37 |
|
|
38 |
38 |
#include "diameterModel.H" |
#include "diameterModel.H" |
39 |
39 |
|
|
|
... |
... |
namespace diameterModels |
45 |
45 |
{ |
{ |
46 |
46 |
|
|
47 |
47 |
/*---------------------------------------------------------------------------*\ |
/*---------------------------------------------------------------------------*\ |
48 |
|
Class constant Declaration |
|
|
48 |
|
Class constantQBMM Declaration |
49 |
49 |
\*---------------------------------------------------------------------------*/ |
\*---------------------------------------------------------------------------*/ |
50 |
50 |
|
|
51 |
|
class constant |
|
|
51 |
|
class constantQBMM |
52 |
52 |
: |
: |
53 |
53 |
public diameterModel |
public diameterModel |
54 |
54 |
{ |
{ |
|
... |
... |
class constant |
61 |
61 |
public: |
public: |
62 |
62 |
|
|
63 |
63 |
//- Runtime type information |
//- Runtime type information |
64 |
|
TypeName("constant"); |
|
|
64 |
|
TypeName("constantQBMM"); |
65 |
65 |
|
|
66 |
66 |
|
|
67 |
67 |
// Constructors |
// Constructors |
68 |
68 |
|
|
69 |
69 |
//- Construct from components |
//- Construct from components |
70 |
|
constant |
|
|
70 |
|
constantQBMM |
71 |
71 |
( |
( |
72 |
72 |
const dictionary& dict, |
const dictionary& dict, |
73 |
73 |
const phaseModel& phase |
const phaseModel& phase |
|
... |
... |
public: |
75 |
75 |
|
|
76 |
76 |
|
|
77 |
77 |
//- Destructor |
//- Destructor |
78 |
|
virtual ~constant(); |
|
|
78 |
|
virtual ~constantQBMM(); |
79 |
79 |
|
|
80 |
80 |
|
|
81 |
81 |
// Member Functions |
// Member Functions |
File multiphaseEulerPbeFoam/multiphaseDisperseSystem/diameterModels/isothermalDiameter/isothermalDiameter.C changed (mode: 100644) (index 3375f22..366c44c) |
... |
... |
namespace Foam |
32 |
32 |
{ |
{ |
33 |
33 |
namespace diameterModels |
namespace diameterModels |
34 |
34 |
{ |
{ |
35 |
|
defineTypeNameAndDebug(isothermal, 0); |
|
|
35 |
|
defineTypeNameAndDebug(isothermalQBMM, 0); |
36 |
36 |
|
|
37 |
37 |
addToRunTimeSelectionTable |
addToRunTimeSelectionTable |
38 |
38 |
( |
( |
39 |
39 |
diameterModel, |
diameterModel, |
40 |
|
isothermal, |
|
|
40 |
|
isothermalQBMM, |
41 |
41 |
dictionary |
dictionary |
42 |
42 |
); |
); |
43 |
43 |
} |
} |
|
... |
... |
namespace diameterModels |
46 |
46 |
|
|
47 |
47 |
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // |
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // |
48 |
48 |
|
|
49 |
|
Foam::diameterModels::isothermal::isothermal |
|
|
49 |
|
Foam::diameterModels::isothermalQBMM::isothermalQBMM |
50 |
50 |
( |
( |
51 |
51 |
const dictionary& dict, |
const dictionary& dict, |
52 |
52 |
const phaseModel& phase |
const phaseModel& phase |
|
... |
... |
Foam::diameterModels::isothermal::isothermal |
60 |
60 |
|
|
61 |
61 |
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // |
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // |
62 |
62 |
|
|
63 |
|
Foam::diameterModels::isothermal::~isothermal() |
|
|
63 |
|
Foam::diameterModels::isothermalQBMM::~isothermalQBMM() |
64 |
64 |
{} |
{} |
65 |
65 |
|
|
66 |
66 |
|
|
67 |
67 |
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // |
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // |
68 |
68 |
|
|
69 |
|
Foam::tmp<Foam::volScalarField> Foam::diameterModels::isothermal::d() const |
|
|
69 |
|
Foam::tmp<Foam::volScalarField> Foam::diameterModels::isothermalQBMM::d() const |
70 |
70 |
{ |
{ |
71 |
71 |
const volScalarField& p = phase_.U().db().lookupObject<volScalarField> |
const volScalarField& p = phase_.U().db().lookupObject<volScalarField> |
72 |
72 |
( |
( |
File multiphaseEulerPbeFoam/multiphaseDisperseSystem/diameterModels/isothermalDiameter/isothermalDiameter.H changed (mode: 100644) (index eb0f1a5..54112e3) |
... |
... |
License |
22 |
22 |
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. |
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. |
23 |
23 |
|
|
24 |
24 |
Class |
Class |
25 |
|
Foam::isothermal |
|
|
25 |
|
Foam::isothermalQBMM |
26 |
26 |
|
|
27 |
27 |
Description |
Description |
28 |
28 |
Isothermal dispersed-phase particle diameter model. |
Isothermal dispersed-phase particle diameter model. |
29 |
29 |
|
|
30 |
30 |
SourceFiles |
SourceFiles |
31 |
|
isothermal.C |
|
|
31 |
|
isothermalDiameter.C |
32 |
32 |
|
|
33 |
33 |
\*---------------------------------------------------------------------------*/ |
\*---------------------------------------------------------------------------*/ |
34 |
34 |
|
|
35 |
|
#ifndef isothermal_H |
|
36 |
|
#define isothermal_H |
|
|
35 |
|
#ifndef isothermalQBMM_H |
|
36 |
|
#define isothermalQBMM_H |
37 |
37 |
|
|
38 |
38 |
#include "diameterModel.H" |
#include "diameterModel.H" |
39 |
39 |
|
|
|
... |
... |
namespace diameterModels |
45 |
45 |
{ |
{ |
46 |
46 |
|
|
47 |
47 |
/*---------------------------------------------------------------------------*\ |
/*---------------------------------------------------------------------------*\ |
48 |
|
Class isothermal Declaration |
|
|
48 |
|
Class isothermalQBMM Declaration |
49 |
49 |
\*---------------------------------------------------------------------------*/ |
\*---------------------------------------------------------------------------*/ |
50 |
50 |
|
|
51 |
|
class isothermal |
|
|
51 |
|
class isothermalQBMM |
52 |
52 |
: |
: |
53 |
53 |
public diameterModel |
public diameterModel |
54 |
54 |
{ |
{ |
|
... |
... |
class isothermal |
64 |
64 |
public: |
public: |
65 |
65 |
|
|
66 |
66 |
//- Runtime type information |
//- Runtime type information |
67 |
|
TypeName("isothermal"); |
|
|
67 |
|
TypeName("isothermalQBMM"); |
68 |
68 |
|
|
69 |
69 |
|
|
70 |
70 |
// Constructors |
// Constructors |
71 |
71 |
|
|
72 |
72 |
//- Construct from components |
//- Construct from components |
73 |
|
isothermal |
|
|
73 |
|
isothermalQBMM |
74 |
74 |
( |
( |
75 |
75 |
const dictionary& dict, |
const dictionary& dict, |
76 |
76 |
const phaseModel& phase |
const phaseModel& phase |
|
... |
... |
public: |
78 |
78 |
|
|
79 |
79 |
|
|
80 |
80 |
//- Destructor |
//- Destructor |
81 |
|
virtual ~isothermal(); |
|
|
81 |
|
virtual ~isothermalQBMM(); |
82 |
82 |
|
|
83 |
83 |
|
|
84 |
84 |
// Member Functions |
// Member Functions |
File multiphaseEulerPbeFoam/multiphaseDisperseSystem/diameterModels/sauterMean/sauterMeanDiameter.C copied from file multiphaseEulerPbeFoam/multiphaseDisperseSystem/diameterModels/QBMM/QBMMDiameter.C (similarity 85%) (mode: 100644) (index 2e0bb86..16c1519) |
2 |
2 |
========= | |
========= | |
3 |
3 |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4 |
4 |
\\ / O peration | |
\\ / O peration | |
5 |
|
\\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation |
|
|
5 |
|
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation |
6 |
6 |
\\/ M anipulation | |
\\/ M anipulation | |
7 |
7 |
------------------------------------------------------------------------------- |
------------------------------------------------------------------------------- |
8 |
8 |
License |
License |
|
... |
... |
License |
23 |
23 |
|
|
24 |
24 |
\*---------------------------------------------------------------------------*/ |
\*---------------------------------------------------------------------------*/ |
25 |
25 |
|
|
26 |
|
#include "QBMMDiameter.H" |
|
|
26 |
|
#include "sauterMeanDiameter.H" |
27 |
27 |
#include "multiphaseDisperseSystem.H" |
#include "multiphaseDisperseSystem.H" |
28 |
28 |
#include "mathematicalConstants.H" |
#include "mathematicalConstants.H" |
29 |
29 |
#include "fundamentalConstants.H" |
#include "fundamentalConstants.H" |
|
... |
... |
namespace Foam |
35 |
35 |
{ |
{ |
36 |
36 |
namespace diameterModels |
namespace diameterModels |
37 |
37 |
{ |
{ |
38 |
|
defineTypeNameAndDebug(QBMM, 0); |
|
|
38 |
|
defineTypeNameAndDebug(sauterMean, 0); |
39 |
39 |
|
|
40 |
40 |
addToRunTimeSelectionTable |
addToRunTimeSelectionTable |
41 |
41 |
( |
( |
42 |
42 |
diameterModel, |
diameterModel, |
43 |
|
QBMM, |
|
|
43 |
|
sauterMean, |
44 |
44 |
dictionary |
dictionary |
45 |
45 |
); |
); |
46 |
46 |
} |
} |
|
... |
... |
namespace diameterModels |
49 |
49 |
|
|
50 |
50 |
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // |
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // |
51 |
51 |
|
|
52 |
|
Foam::diameterModels::QBMM::QBMM |
|
|
52 |
|
Foam::diameterModels::sauterMean::sauterMean |
53 |
53 |
( |
( |
54 |
54 |
const dictionary& dict, |
const dictionary& dict, |
55 |
55 |
const phaseModel& phase |
const phaseModel& phase |
|
... |
... |
Foam::diameterModels::QBMM::QBMM |
79 |
79 |
|
|
80 |
80 |
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // |
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // |
81 |
81 |
|
|
82 |
|
Foam::diameterModels::QBMM::~QBMM() |
|
|
82 |
|
Foam::diameterModels::sauterMean::~sauterMean() |
83 |
83 |
{} |
{} |
84 |
84 |
|
|
85 |
85 |
|
|
86 |
86 |
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // |
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // |
87 |
87 |
|
|
88 |
|
Foam::tmp<Foam::volScalarField> Foam::diameterModels::QBMM::dsm() const |
|
|
88 |
|
Foam::tmp<Foam::volScalarField> Foam::diameterModels::sauterMean::dsm() const |
89 |
89 |
{ |
{ |
90 |
90 |
|
|
91 |
91 |
volScalarField moment3_(phase_.U().mesh().lookupObject<volScalarField>(IOobject::groupName("moment.3.populationBalance", phase_.name()))); |
volScalarField moment3_(phase_.U().mesh().lookupObject<volScalarField>(IOobject::groupName("moment.3.populationBalance", phase_.name()))); |
92 |
|
// Info<< "moment.3 in QBMM diameter= " << moment3_[0] << endl; |
|
|
92 |
|
// Info<< "moment.3 in sauterMean diameter= " << moment3_[0] << endl; |
93 |
93 |
|
|
94 |
94 |
volScalarField moment2_(phase_.U().mesh().lookupObject<volScalarField>(IOobject::groupName("moment.2.populationBalance", phase_.name()))); |
volScalarField moment2_(phase_.U().mesh().lookupObject<volScalarField>(IOobject::groupName("moment.2.populationBalance", phase_.name()))); |
95 |
95 |
// Info<< "min moment.2 in diameter= " << max(moment2_,min_moment2_) << endl; |
// Info<< "min moment.2 in diameter= " << max(moment2_,min_moment2_) << endl; |
96 |
96 |
// Calculate the sauter mean diameter of the phase |
// Calculate the sauter mean diameter of the phase |
97 |
|
// Info<< "QBMM diameter= " << moment2_[0] << endl; |
|
|
97 |
|
// Info<< "sauterMean diameter= " << moment2_[0] << endl; |
98 |
98 |
return min(max(moment3_/max(moment2_, min_moment2_), dMin_), dMax_); |
return min(max(moment3_/max(moment2_, min_moment2_), dMin_), dMax_); |
99 |
99 |
} |
} |
100 |
100 |
|
|
101 |
|
void Foam::diameterModels::QBMM::correct() |
|
|
101 |
|
void Foam::diameterModels::sauterMean::correct() |
102 |
102 |
{ |
{ |
103 |
103 |
// Alternative method to calculate diameter |
// Alternative method to calculate diameter |
104 |
104 |
// Calculates diameter of the phase using the associated volume fraction |
// Calculates diameter of the phase using the associated volume fraction |
|
... |
... |
void Foam::diameterModels::QBMM::correct() |
115 |
115 |
|
|
116 |
116 |
// Update the diameter |
// Update the diameter |
117 |
117 |
// d_ = alpha_ / (Kv_ * moment2); |
// d_ = alpha_ / (Kv_ * moment2); |
118 |
|
Info << "correct diameter with QBMM diameter model" << endl; |
|
|
118 |
|
Info << "Update phase Sauter mean diameter" << endl; |
119 |
119 |
d_ = dsm(); |
d_ = dsm(); |
120 |
120 |
} |
} |
121 |
121 |
/* |
/* |
122 |
|
bool Foam::diameterModels::QBMM::read(const dictionary& phaseDict) |
|
|
122 |
|
bool Foam::diameterModels::sauterMean::read(const dictionary& phaseDict) |
123 |
123 |
{ |
{ |
124 |
124 |
diameterModel::read(phaseDict); |
diameterModel::read(phaseDict); |
125 |
125 |
|
|
File multiphaseEulerPbeFoam/multiphaseDisperseSystem/diameterModels/sauterMean/sauterMeanDiameter.H copied from file multiphaseEulerPbeFoam/multiphaseDisperseSystem/diameterModels/QBMM/QBMMDiameter.H (similarity 89%) (mode: 100644) (index 29fe420..3d57eea) |
2 |
2 |
========= | |
========= | |
3 |
3 |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4 |
4 |
\\ / O peration | |
\\ / O peration | |
5 |
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation |
|
|
5 |
|
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation |
6 |
6 |
\\/ M anipulation | |
\\/ M anipulation | |
7 |
7 |
------------------------------------------------------------------------------- |
------------------------------------------------------------------------------- |
8 |
8 |
License |
License |
|
... |
... |
License |
22 |
22 |
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. |
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. |
23 |
23 |
|
|
24 |
24 |
Class |
Class |
25 |
|
Foam::QBMM |
|
|
25 |
|
Foam::sauterMean |
26 |
26 |
|
|
27 |
27 |
Description |
Description |
28 |
|
QBMM-based dispersed-phase particle diameter model. |
|
|
28 |
|
QBMM-based sauter mean dispersed-phase particle diameter model. |
29 |
29 |
|
|
30 |
30 |
Calculates the sauter-mean diameter of a phase based on time-evolution of |
Calculates the sauter-mean diameter of a phase based on time-evolution of |
31 |
31 |
the moments of the distribution as evaluated using the OpenQBMM library. |
the moments of the distribution as evaluated using the OpenQBMM library. |
32 |
32 |
|
|
33 |
33 |
SourceFiles |
SourceFiles |
34 |
|
QBMM.C |
|
|
34 |
|
sauterMeanDiameter.C |
35 |
35 |
|
|
36 |
36 |
\*---------------------------------------------------------------------------*/ |
\*---------------------------------------------------------------------------*/ |
37 |
37 |
|
|
38 |
|
#ifndef QBMM_H |
|
39 |
|
#define QBMM_H |
|
|
38 |
|
#ifndef sauterMean_H |
|
39 |
|
#define sauterMean_H |
40 |
40 |
|
|
41 |
41 |
#include "diameterModel.H" |
#include "diameterModel.H" |
42 |
42 |
|
|
|
... |
... |
namespace diameterModels |
48 |
48 |
{ |
{ |
49 |
49 |
|
|
50 |
50 |
/*---------------------------------------------------------------------------*\ |
/*---------------------------------------------------------------------------*\ |
51 |
|
Class QBMM Declaration |
|
|
51 |
|
Class sauterMean Declaration |
52 |
52 |
\*---------------------------------------------------------------------------*/ |
\*---------------------------------------------------------------------------*/ |
53 |
53 |
|
|
54 |
|
class QBMM |
|
|
54 |
|
class sauterMean |
55 |
55 |
: |
: |
56 |
56 |
public diameterModel |
public diameterModel |
57 |
57 |
{ |
{ |
|
... |
... |
class QBMM |
80 |
80 |
public: |
public: |
81 |
81 |
|
|
82 |
82 |
//- Runtime type information |
//- Runtime type information |
83 |
|
TypeName("QBMM"); |
|
|
83 |
|
TypeName("sauterMean"); |
84 |
84 |
|
|
85 |
85 |
|
|
86 |
86 |
// Constructors |
// Constructors |
87 |
87 |
|
|
88 |
88 |
//- Construct from components |
//- Construct from components |
89 |
|
QBMM |
|
|
89 |
|
sauterMean |
90 |
90 |
( |
( |
91 |
91 |
const dictionary& dict, |
const dictionary& dict, |
92 |
92 |
const phaseModel& phase |
const phaseModel& phase |
|
... |
... |
public: |
94 |
94 |
|
|
95 |
95 |
|
|
96 |
96 |
//- Destructor |
//- Destructor |
97 |
|
virtual ~QBMM(); |
|
|
97 |
|
virtual ~sauterMean(); |
98 |
98 |
|
|
99 |
99 |
|
|
100 |
100 |
// Member Functions |
// Member Functions |
File multiphaseEulerPbeFoam/multiphaseDisperseSystem/disperseAlphaContactAngle/disperseAlphaContactAngleFvPatchScalarField.C renamed from multiphaseEulerPbeFoam/multiphaseDisperseSystem/alphaContactAngle/alphaContactAngleFvPatchScalarField.C (similarity 77%) (mode: 100644) (index a0d433f..0d281ac) |
... |
... |
License |
23 |
23 |
|
|
24 |
24 |
\*---------------------------------------------------------------------------*/ |
\*---------------------------------------------------------------------------*/ |
25 |
25 |
|
|
26 |
|
#include "alphaContactAngleFvPatchScalarField.H" |
|
|
26 |
|
#include "disperseAlphaContactAngleFvPatchScalarField.H" |
27 |
27 |
#include "addToRunTimeSelectionTable.H" |
#include "addToRunTimeSelectionTable.H" |
28 |
28 |
#include "fvPatchFieldMapper.H" |
#include "fvPatchFieldMapper.H" |
29 |
29 |
|
|
|
... |
... |
License |
32 |
32 |
namespace Foam |
namespace Foam |
33 |
33 |
{ |
{ |
34 |
34 |
|
|
35 |
|
alphaContactAngleFvPatchScalarField::interfaceThetaProps::interfaceThetaProps |
|
|
35 |
|
disperseAlphaContactAngleFvPatchScalarField::interfaceThetaProps::interfaceThetaProps |
36 |
36 |
( |
( |
37 |
37 |
Istream& is |
Istream& is |
38 |
38 |
) |
) |
|
... |
... |
alphaContactAngleFvPatchScalarField::interfaceThetaProps::interfaceThetaProps |
47 |
47 |
Istream& operator>> |
Istream& operator>> |
48 |
48 |
( |
( |
49 |
49 |
Istream& is, |
Istream& is, |
50 |
|
alphaContactAngleFvPatchScalarField::interfaceThetaProps& tp |
|
|
50 |
|
disperseAlphaContactAngleFvPatchScalarField::interfaceThetaProps& tp |
51 |
51 |
) |
) |
52 |
52 |
{ |
{ |
53 |
53 |
is >> tp.theta0_ >> tp.uTheta_ >> tp.thetaA_ >> tp.thetaR_; |
is >> tp.theta0_ >> tp.uTheta_ >> tp.thetaA_ >> tp.thetaR_; |
|
... |
... |
Istream& operator>> |
58 |
58 |
Ostream& operator<< |
Ostream& operator<< |
59 |
59 |
( |
( |
60 |
60 |
Ostream& os, |
Ostream& os, |
61 |
|
const alphaContactAngleFvPatchScalarField::interfaceThetaProps& tp |
|
|
61 |
|
const disperseAlphaContactAngleFvPatchScalarField::interfaceThetaProps& tp |
62 |
62 |
) |
) |
63 |
63 |
{ |
{ |
64 |
64 |
os << tp.theta0_ << token::SPACE |
os << tp.theta0_ << token::SPACE |
|
... |
... |
Ostream& operator<< |
72 |
72 |
|
|
73 |
73 |
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // |
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // |
74 |
74 |
|
|
75 |
|
alphaContactAngleFvPatchScalarField::alphaContactAngleFvPatchScalarField |
|
|
75 |
|
disperseAlphaContactAngleFvPatchScalarField::disperseAlphaContactAngleFvPatchScalarField |
76 |
76 |
( |
( |
77 |
77 |
const fvPatch& p, |
const fvPatch& p, |
78 |
78 |
const DimensionedField<scalar, volMesh>& iF |
const DimensionedField<scalar, volMesh>& iF |
|
... |
... |
alphaContactAngleFvPatchScalarField::alphaContactAngleFvPatchScalarField |
82 |
82 |
{} |
{} |
83 |
83 |
|
|
84 |
84 |
|
|
85 |
|
alphaContactAngleFvPatchScalarField::alphaContactAngleFvPatchScalarField |
|
|
85 |
|
disperseAlphaContactAngleFvPatchScalarField::disperseAlphaContactAngleFvPatchScalarField |
86 |
86 |
( |
( |
87 |
|
const alphaContactAngleFvPatchScalarField& gcpsf, |
|
|
87 |
|
const disperseAlphaContactAngleFvPatchScalarField& gcpsf, |
88 |
88 |
const fvPatch& p, |
const fvPatch& p, |
89 |
89 |
const DimensionedField<scalar, volMesh>& iF, |
const DimensionedField<scalar, volMesh>& iF, |
90 |
90 |
const fvPatchFieldMapper& mapper |
const fvPatchFieldMapper& mapper |
|
... |
... |
alphaContactAngleFvPatchScalarField::alphaContactAngleFvPatchScalarField |
95 |
95 |
{} |
{} |
96 |
96 |
|
|
97 |
97 |
|
|
98 |
|
alphaContactAngleFvPatchScalarField::alphaContactAngleFvPatchScalarField |
|
|
98 |
|
disperseAlphaContactAngleFvPatchScalarField::disperseAlphaContactAngleFvPatchScalarField |
99 |
99 |
( |
( |
100 |
100 |
const fvPatch& p, |
const fvPatch& p, |
101 |
101 |
const DimensionedField<scalar, volMesh>& iF, |
const DimensionedField<scalar, volMesh>& iF, |
|
... |
... |
alphaContactAngleFvPatchScalarField::alphaContactAngleFvPatchScalarField |
109 |
109 |
} |
} |
110 |
110 |
|
|
111 |
111 |
|
|
112 |
|
alphaContactAngleFvPatchScalarField::alphaContactAngleFvPatchScalarField |
|
|
112 |
|
disperseAlphaContactAngleFvPatchScalarField::disperseAlphaContactAngleFvPatchScalarField |
113 |
113 |
( |
( |
114 |
|
const alphaContactAngleFvPatchScalarField& gcpsf, |
|
|
114 |
|
const disperseAlphaContactAngleFvPatchScalarField& gcpsf, |
115 |
115 |
const DimensionedField<scalar, volMesh>& iF |
const DimensionedField<scalar, volMesh>& iF |
116 |
116 |
) |
) |
117 |
117 |
: |
: |
|
... |
... |
alphaContactAngleFvPatchScalarField::alphaContactAngleFvPatchScalarField |
122 |
122 |
|
|
123 |
123 |
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // |
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // |
124 |
124 |
|
|
125 |
|
void alphaContactAngleFvPatchScalarField::write(Ostream& os) const |
|
|
125 |
|
void disperseAlphaContactAngleFvPatchScalarField::write(Ostream& os) const |
126 |
126 |
{ |
{ |
127 |
127 |
fvPatchScalarField::write(os); |
fvPatchScalarField::write(os); |
128 |
128 |
os.writeKeyword("thetaProperties") |
os.writeKeyword("thetaProperties") |
|
... |
... |
void alphaContactAngleFvPatchScalarField::write(Ostream& os) const |
136 |
136 |
makePatchTypeField |
makePatchTypeField |
137 |
137 |
( |
( |
138 |
138 |
fvPatchScalarField, |
fvPatchScalarField, |
139 |
|
alphaContactAngleFvPatchScalarField |
|
|
139 |
|
disperseAlphaContactAngleFvPatchScalarField |
140 |
140 |
); |
); |
141 |
141 |
|
|
142 |
142 |
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // |
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // |
File multiphaseEulerPbeFoam/multiphaseDisperseSystem/disperseAlphaContactAngle/disperseAlphaContactAngleFvPatchScalarField.H renamed from multiphaseEulerPbeFoam/multiphaseDisperseSystem/alphaContactAngle/alphaContactAngleFvPatchScalarField.H (similarity 84%) (mode: 100644) (index cf0b09c..14ef093) |
... |
... |
License |
22 |
22 |
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. |
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. |
23 |
23 |
|
|
24 |
24 |
Class |
Class |
25 |
|
Foam::alphaContactAngleFvPatchScalarField |
|
|
25 |
|
Foam::disperseAlphaContactAngleFvPatchScalarField |
26 |
26 |
|
|
27 |
27 |
Description |
Description |
28 |
28 |
Contact-angle boundary condition for multi-phase interface-capturing |
Contact-angle boundary condition for multi-phase interface-capturing |
29 |
29 |
simulations. Used in conjuction with multiphaseDisperseSystem. |
simulations. Used in conjuction with multiphaseDisperseSystem. |
30 |
30 |
|
|
31 |
31 |
SourceFiles |
SourceFiles |
32 |
|
alphaContactAngleFvPatchScalarField.C |
|
|
32 |
|
disperseAlphaContactAngleFvPatchScalarField.C |
33 |
33 |
|
|
34 |
34 |
\*---------------------------------------------------------------------------*/ |
\*---------------------------------------------------------------------------*/ |
35 |
35 |
|
|
36 |
|
#ifndef alphaContactAngleFvPatchScalarField_H |
|
37 |
|
#define alphaContactAngleFvPatchScalarField_H |
|
|
36 |
|
#ifndef disperseAlphaContactAngleFvPatchScalarField_H |
|
37 |
|
#define disperseAlphaContactAngleFvPatchScalarField_H |
38 |
38 |
|
|
39 |
39 |
#include "zeroGradientFvPatchFields.H" |
#include "zeroGradientFvPatchFields.H" |
40 |
40 |
#include "multiphaseDisperseSystem.H" |
#include "multiphaseDisperseSystem.H" |
|
... |
... |
namespace Foam |
45 |
45 |
{ |
{ |
46 |
46 |
|
|
47 |
47 |
/*---------------------------------------------------------------------------*\ |
/*---------------------------------------------------------------------------*\ |
48 |
|
Class alphaContactAngleFvPatch Declaration |
|
|
48 |
|
Class disperseAlphaContactAngleFvPatch Declaration |
49 |
49 |
\*---------------------------------------------------------------------------*/ |
\*---------------------------------------------------------------------------*/ |
50 |
50 |
|
|
51 |
|
class alphaContactAngleFvPatchScalarField |
|
|
51 |
|
class disperseAlphaContactAngleFvPatchScalarField |
52 |
52 |
: |
: |
53 |
53 |
public zeroGradientFvPatchScalarField |
public zeroGradientFvPatchScalarField |
54 |
54 |
{ |
{ |
|
... |
... |
private: |
132 |
132 |
public: |
public: |
133 |
133 |
|
|
134 |
134 |
//- Runtime type information |
//- Runtime type information |
135 |
|
TypeName("alphaContactAngle"); |
|
|
135 |
|
TypeName("disperseAlphaContactAngle"); |
136 |
136 |
|
|
137 |
137 |
|
|
138 |
138 |
// Constructors |
// Constructors |
139 |
139 |
|
|
140 |
140 |
//- Construct from patch and internal field |
//- Construct from patch and internal field |
141 |
|
alphaContactAngleFvPatchScalarField |
|
|
141 |
|
disperseAlphaContactAngleFvPatchScalarField |
142 |
142 |
( |
( |
143 |
143 |
const fvPatch&, |
const fvPatch&, |
144 |
144 |
const DimensionedField<scalar, volMesh>& |
const DimensionedField<scalar, volMesh>& |
145 |
145 |
); |
); |
146 |
146 |
|
|
147 |
147 |
//- Construct from patch, internal field and dictionary |
//- Construct from patch, internal field and dictionary |
148 |
|
alphaContactAngleFvPatchScalarField |
|
|
148 |
|
disperseAlphaContactAngleFvPatchScalarField |
149 |
149 |
( |
( |
150 |
150 |
const fvPatch&, |
const fvPatch&, |
151 |
151 |
const DimensionedField<scalar, volMesh>&, |
const DimensionedField<scalar, volMesh>&, |
152 |
152 |
const dictionary& |
const dictionary& |
153 |
153 |
); |
); |
154 |
154 |
|
|
155 |
|
//- Construct by mapping given alphaContactAngleFvPatchScalarField |
|
|
155 |
|
//- Construct by mapping given disperseAlphaContactAngleFvPatchScalarField |
156 |
156 |
// onto a new patch |
// onto a new patch |
157 |
|
alphaContactAngleFvPatchScalarField |
|
|
157 |
|
disperseAlphaContactAngleFvPatchScalarField |
158 |
158 |
( |
( |
159 |
|
const alphaContactAngleFvPatchScalarField&, |
|
|
159 |
|
const disperseAlphaContactAngleFvPatchScalarField&, |
160 |
160 |
const fvPatch&, |
const fvPatch&, |
161 |
161 |
const DimensionedField<scalar, volMesh>&, |
const DimensionedField<scalar, volMesh>&, |
162 |
162 |
const fvPatchFieldMapper& |
const fvPatchFieldMapper& |
|
... |
... |
public: |
167 |
167 |
{ |
{ |
168 |
168 |
return tmp<fvPatchScalarField> |
return tmp<fvPatchScalarField> |
169 |
169 |
( |
( |
170 |
|
new alphaContactAngleFvPatchScalarField(*this) |
|
|
170 |
|
new disperseAlphaContactAngleFvPatchScalarField(*this) |
171 |
171 |
); |
); |
172 |
172 |
} |
} |
173 |
173 |
|
|
174 |
174 |
//- Construct as copy setting internal field reference |
//- Construct as copy setting internal field reference |
175 |
|
alphaContactAngleFvPatchScalarField |
|
|
175 |
|
disperseAlphaContactAngleFvPatchScalarField |
176 |
176 |
( |
( |
177 |
|
const alphaContactAngleFvPatchScalarField&, |
|
|
177 |
|
const disperseAlphaContactAngleFvPatchScalarField&, |
178 |
178 |
const DimensionedField<scalar, volMesh>& |
const DimensionedField<scalar, volMesh>& |
179 |
179 |
); |
); |
180 |
180 |
|
|
|
... |
... |
public: |
186 |
186 |
{ |
{ |
187 |
187 |
return tmp<fvPatchScalarField> |
return tmp<fvPatchScalarField> |
188 |
188 |
( |
( |
189 |
|
new alphaContactAngleFvPatchScalarField(*this, iF) |
|
|
189 |
|
new disperseAlphaContactAngleFvPatchScalarField(*this, iF) |
190 |
190 |
); |
); |
191 |
191 |
} |
} |
192 |
192 |
|
|
File multiphaseEulerPbeFoam/multiphaseDisperseSystem/multiphaseDisperseSystem.C changed (mode: 100644) (index 56ed51f..a2a0a57) |
... |
... |
License |
24 |
24 |
\*---------------------------------------------------------------------------*/ |
\*---------------------------------------------------------------------------*/ |
25 |
25 |
|
|
26 |
26 |
#include "multiphaseDisperseSystem.H" |
#include "multiphaseDisperseSystem.H" |
27 |
|
#include "alphaContactAngleFvPatchScalarField.H" |
|
|
27 |
|
#include "disperseAlphaContactAngleFvPatchScalarField.H" |
28 |
28 |
#include "fixedValueFvsPatchFields.H" |
#include "fixedValueFvsPatchFields.H" |
29 |
29 |
#include "Time.H" |
#include "Time.H" |
30 |
30 |
#include "subCycle.H" |
#include "subCycle.H" |
|
... |
... |
void Foam::multiphaseDisperseSystem::correctContactAngle |
262 |
262 |
|
|
263 |
263 |
forAll(boundary, patchi) |
forAll(boundary, patchi) |
264 |
264 |
{ |
{ |
265 |
|
if (isA<alphaContactAngleFvPatchScalarField>(gbf[patchi])) |
|
|
265 |
|
if (isA<disperseAlphaContactAngleFvPatchScalarField>(gbf[patchi])) |
266 |
266 |
{ |
{ |
267 |
|
const alphaContactAngleFvPatchScalarField& acap = |
|
268 |
|
refCast<const alphaContactAngleFvPatchScalarField>(gbf[patchi]); |
|
|
267 |
|
const disperseAlphaContactAngleFvPatchScalarField& acap = |
|
268 |
|
refCast<const disperseAlphaContactAngleFvPatchScalarField>(gbf[patchi]); |
269 |
269 |
|
|
270 |
270 |
vectorField& nHatPatch = nHatb[patchi]; |
vectorField& nHatPatch = nHatb[patchi]; |
271 |
271 |
|
|
|
... |
... |
void Foam::multiphaseDisperseSystem::correctContactAngle |
275 |
275 |
/mesh_.magSf().boundaryField()[patchi] |
/mesh_.magSf().boundaryField()[patchi] |
276 |
276 |
); |
); |
277 |
277 |
|
|
278 |
|
alphaContactAngleFvPatchScalarField::thetaPropsTable:: |
|
|
278 |
|
disperseAlphaContactAngleFvPatchScalarField::thetaPropsTable:: |
279 |
279 |
const_iterator tp = |
const_iterator tp = |
280 |
280 |
acap.thetaProps().find(interfacePair(phase1, phase2)); |
acap.thetaProps().find(interfacePair(phase1, phase2)); |
281 |
281 |
|
|