-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfree_surface_kernel.h
More file actions
59 lines (48 loc) · 2 KB
/
free_surface_kernel.h
File metadata and controls
59 lines (48 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// ---------------------------------------------------------------------
//
// Copyright (C) 2014 - 2019 by the BEMStokes authors.
//
// This file is part of the BEMStokes library.
//
// The BEMStokes is free software; you can use it, redistribute
// it, and/or modify it under the terms of the GNU Lesser General
// Public License version 2.1 as published by the Free Software Foundation.
// The full text of the license can be found in the file LICENSE at
// the top level of the BEMStokes distribution.
//
// Authors: Nicola Giuliani, Luca Heltai, Antonio DeSimone
//
// ---------------------------------------------------------------------
#ifndef __mathlab__free_surface_kernel_h // Avoid double definitions
#define __mathlab__free_surface_kernel_h
#include <deal.II/base/types.h>
#include <deal.II/base/utilities.h>
#include <cmath>
#include <kernel.h>
DEAL_II_NAMESPACE_OPEN
template <int dim>
class FreeSurfaceStokesKernel : public StokesKernel<dim>
{
public:
FreeSurfaceStokesKernel(const double eps = 0.);
virtual Tensor<2, dim, double>
value_tens_image(const Tensor<1,dim,double> &p, const Tensor<1,dim,double> &p_image) const;
virtual Tensor<2, dim, double>
value_tens_image_old(const Tensor<1,dim,double> &p, const Tensor<1,dim,double> &p_image) const;
virtual Tensor<3, dim, double>
value_tens_image2(const Tensor<1,dim,double> &p, const Tensor<1,dim,double> &p_image) const;
virtual Tensor<3, dim, double>
value_tens_image2_old(const Tensor<1,dim,double> &p, const Tensor<1,dim,double> &p_image) const;
virtual Tensor<2, dim, double>
value_tens_image_pimponi(const Tensor<1,dim,double> &p, const Tensor<1,dim,double> &p_image) const;
virtual Tensor<3, dim, double>
value_tens_image2_pimponi(const Tensor<1,dim,double> &p, const Tensor<1,dim,double> &p_image) const;
void set_wall_orientation(const unsigned int orientation);
unsigned int get_wall_orientation();
private:
const double epsilon;
double wall_position;
unsigned int wall_orientation;
};
DEAL_II_NAMESPACE_CLOSE
#endif