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

Class forces

src/functionObjects/forces/forces/forces.H:134–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132\*---------------------------------------------------------------------------*/
133
134class forces
135:
136 public fvMeshFunctionObject,
137 public logFiles
138{
139
140protected:
141
142 // Protected data
143
144 //- Enumeration for ensuring the right file is accessed
145 enum fileID
146 {
147 MAIN_FILE = 0,
148 BINS_FILE = 1
149 };
150
151 //- Pressure, viscous and porous force per bin
152 List<Field<vector>> force_;
153
154 //- Pressure, viscous and porous moment per bin
155 List<Field<vector>> moment_;
156
157
158 // Read from dictionary
159
160 //- Patches to integrate forces over
161 labelHashSet patchSet_;
162
163 //- Name of pressure field
164 word pName_;
165
166 //- Name of velocity field
167 word UName_;
168
169 //- Name of density field (optional)
170 word rhoName_;
171
172 //- Is the force density being supplied directly?
173 Switch directForceDensity_;
174
175 //- The name of the force density (fD) field
176 word fDName_;
177
178 //- Reference density needed for incompressible calculations
179 scalar rhoRef_;
180
181 //- Reference pressure
182 scalar pRef_;
183
184 //- Coordinate system used when evaluting forces/moments
185 coordinateSystem coordSys_;
186
187 //- Flag to indicate whether we are using a local co-ordinate sys
188 bool localSystem_;
189
190 //- Flag to include porosity effects
191 bool porosity_;

Callers 2

forces.CFile · 0.85
forceCoeffs.CFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected