MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / MRFZone

Class MRFZone

src/finiteVolume/cfdTools/general/MRF/MRFZone.H:66–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64\*---------------------------------------------------------------------------*/
65
66class MRFZone
67{
68 // Private data
69
70 //- Reference to the mesh database
71 const fvMesh& mesh_;
72
73 //- Name of the MRF region
74 const word name_;
75
76 //- Coefficients dictionary
77 dictionary coeffs_;
78
79 //- MRF region active flag
80 bool active_;
81
82 //- Name of cell zone
83 word cellZoneName_;
84
85 //- Cell zone ID
86 label cellZoneID_;
87
88 const wordReList excludedPatchNames_;
89
90 labelList excludedPatchLabels_;
91
92 //- Internal faces that are part of MRF
93 labelList internalFaces_;
94
95 //- Outside faces (per patch) that move with the MRF
96 labelListList includedFaces_;
97
98 //- Excluded faces (per patch) that do not move with the MRF
99 labelListList excludedFaces_;
100
101 //- Origin of the axis
102 const vector origin_;
103
104 //- Axis vector
105 vector axis_;
106
107 //- Angular velocty (rad/sec)
108 autoPtr<Function1<scalar>> omega_;
109
110
111 // Private Member Functions
112
113 //- Divide faces in frame according to patch
114 void setMRFFaces();
115
116 //- Make the given absolute mass/vol flux relative within the MRF region
117 template<class RhoFieldType>
118 void makeRelativeRhoFlux
119 (
120 const RhoFieldType& rho,
121 surfaceScalarField& phi
122 ) const;
123

Callers 1

resetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected