VTK  9.3.0
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 
52 protected:
55 
56  static double GetRelaxationTime(double dynVisc, double diameter, double density);
57 
58  static double GetDragCoefficient(const double* flowVelocity, const double* particleVelocity,
59  double dynVisc, double particleDiameter, double flowDensity);
60 
61 private:
63  void operator=(const vtkLagrangianMatidaIntegrationModel&) = delete;
64 };
65 
66 VTK_ABI_NAMESPACE_END
67 #endif
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
virtual int FunctionValues(double *x, double *f)
Evaluate functions at x_j.
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkFunctionSet abstract implementation to be used in the vtkLagrangianParticleTracker integrator.
vtkLagrangianBasicIntegrationModel implementation
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FunctionValues(vtkLagrangianParticle *particle, vtkDataSet *dataSet, vtkIdType cellId, double *weights, double *x, double *f) override
Evaluate the integration model velocity field f at position x, using data from cell in dataSet with i...
static vtkLagrangianMatidaIntegrationModel * New()
static double GetRelaxationTime(double dynVisc, double diameter, double density)
static double GetDragCoefficient(const double *flowVelocity, const double *particleVelocity, double dynVisc, double particleDiameter, double flowDensity)
Basis class for Lagrangian particles.
int vtkIdType
Definition: vtkType.h:315