16 #ifndef dealii__flow_function_h 17 #define dealii__flow_function_h 20 #include <deal.II/base/config.h> 21 #include <deal.II/base/function.h> 22 #include <deal.II/base/point.h> 23 #include <deal.II/base/thread_management.h> 25 DEAL_II_NAMESPACE_OPEN
73 std::vector<std::vector<double> > &values)
const = 0;
80 std::vector<std::vector<
Tensor<1,dim> > > &gradients)
const = 0;
90 std::vector<std::vector<double> > &values)
const = 0;
93 virtual double value (
const Point<dim> &points,
const unsigned int component)
const;
96 virtual void vector_gradient_list (
const std::vector<
Point<dim> > &points,
104 std::size_t memory_consumption ()
const;
151 std::vector<std::vector<double> > &values)
const;
155 std::vector<std::vector<double> > &values)
const;
159 const double Reynolds;
193 std::vector<std::vector<double> > &values)
const;
197 std::vector<std::vector<double> > &values)
const;
221 virtual void vector_values (
const std::vector<
Point<2> > &points,
222 std::vector<std::vector<double> > &values)
const;
223 virtual void vector_gradients (
const std::vector<
Point<2> > &points,
224 std::vector<std::vector<
Tensor<1,2> > > &gradients)
const;
225 virtual void vector_laplacians (
const std::vector<
Point<2> > &points,
226 std::vector<std::vector<double> > &values)
const;
229 double Psi(
double phi)
const;
231 double Psi_1(
double phi)
const;
233 double Psi_2(
double phi)
const;
235 double Psi_3(
double phi)
const;
237 double Psi_4(
double phi)
const;
268 Kovasznay (
const double Re,
bool Stokes =
false);
271 virtual void vector_values (
const std::vector<
Point<2> > &points,
272 std::vector<std::vector<double> > &values)
const;
273 virtual void vector_gradients (
const std::vector<
Point<2> > &points,
274 std::vector<std::vector<
Tensor<1,2> > > &gradients)
const;
275 virtual void vector_laplacians (
const std::vector<
Point<2> > &points,
276 std::vector<std::vector<double> > &values)
const;
281 const double Reynolds;
289 DEAL_II_NAMESPACE_CLOSE
std::vector< std::vector< double > > aux_values
const double lm
Auxiliary variable 1-lambda.
virtual double value(const Point< dim > &points, const unsigned int component) const
const double lp
Auxiliary variable 1+lambda.
virtual void vector_values(const std::vector< Point< dim > > &points, std::vector< std::vector< double > > &values) const
static const double lambda
The exponent of the radius.
StokesCosine(const double viscosity=1., const double reaction=0.)
virtual void vector_gradients(const std::vector< Point< dim > > &points, std::vector< std::vector< Tensor< 1, dim > > > &gradients) const =0
void set_parameters(const double viscosity, const double reaction)
double viscosity
The viscosity.
double Psi(double phi) const
The auxiliary function Psi.
virtual void vector_gradients(const std::vector< Point< dim > > &points, std::vector< std::vector< Tensor< 1, dim > > > &gradients) const
virtual void vector_gradients(const std::vector< Point< dim > > &points, std::vector< std::vector< Tensor< 1, dim > > > &gradients) const
double lambda() const
The value of lambda.
virtual void vector_values(const std::vector< Point< dim > > &points, std::vector< std::vector< double > > &values) const
std::vector< std::vector< Tensor< 1, dim > > > aux_gradients
double reaction
The reaction parameter.
virtual void vector_value(const Point< dim > &points, Vector< double > &value) const
virtual void vector_laplacians(const std::vector< Point< dim > > &points, std::vector< std::vector< double > > &values) const
const double omega
The angle of the reentrant corner.
virtual void vector_value_list(const std::vector< Point< dim > > &points, std::vector< Vector< double > > &values) const
double Psi_1(double phi) const
The derivative of Psi()
const double coslo
Cosine of lambda times omega.
double Psi_4(double phi) const
The 4th derivative of Psi()
virtual void vector_laplacians(const std::vector< Point< dim > > &points, std::vector< std::vector< double > > &values) const =0
double Psi_3(double phi) const
The 3rd derivative of Psi()
StokesLSingularity()
Constructor setting up some data.
virtual void vector_values(const std::vector< Point< dim > > &points, std::vector< std::vector< double > > &values) const =0
virtual void vector_laplacian_list(const std::vector< Point< dim > > &points, std::vector< Vector< double > > &values) const
virtual void vector_laplacians(const std::vector< Point< dim > > &points, std::vector< std::vector< double > > &values) const
Kovasznay(const double Re, bool Stokes=false)
double Psi_2(double phi) const
The 2nd derivative of Psi()
void pressure_adjustment(double p)