VTK  9.7.1
vtkLagrangianMatidaIntegrationModel.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
27 #ifndef vtkLagrangianMatidaIntegrationModel_h
28 #define vtkLagrangianMatidaIntegrationModel_h
29 
30 #include "vtkFiltersFlowPathsModule.h" // For export macro
32 
33 VTK_ABI_NAMESPACE_BEGIN
34 class VTKFILTERSFLOWPATHS_EXPORT vtkLagrangianMatidaIntegrationModel
36 {
37 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
42  // Needed for multiple signatures polymorphism
44 
49  int FunctionValues(vtkLagrangianParticle* particle, vtkDataSet* dataSet, vtkIdType cellId,
50  double* weights, double* x, double* f) override;
51 
53 
57  vtkSetVector3Macro(Gravity, double);
58  vtkGetVector3Macro(Gravity, double);
59 
60 protected:
63 
64  static double GetRelaxationTime(double dynVisc, double diameter, double density);
65 
66  static double GetDragCoefficient(const double* flowVelocity, const double* particleVelocity,
67  double dynVisc, double particleDiameter, double flowDensity);
68 
69  double Gravity[3] = { 0, 0, -9.8 };
70 
71 private:
73  void operator=(const vtkLagrangianMatidaIntegrationModel&) = delete;
74 };
75 
76 VTK_ABI_NAMESPACE_END
77 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FunctionValues(double *x, double *f, void *userData) override
Evaluate integration model velocity f at position x.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
int vtkIdType
Definition: vtkType.h:363
a simple class to control print indentation
Definition: vtkIndent.h:28
vtkFunctionSet abstract implementation to be used in the vtkLagrangianParticleTracker integrator...
vtkLagrangianBasicIntegrationModel implementation
Basis class for Lagrangian particles.
virtual int FunctionValues(double *x, double *f)
Evaluate functions at x_j.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...