Chaste
Commit::baa90ac2819b962188b7562f2326be23c47859a7
ImmersedBoundaryFftInterface.hpp
1
/*
2
3
Copyright (c) 2005-2024, University of Oxford.
4
All rights reserved.
5
6
University of Oxford means the Chancellor, Masters and Scholars of the
7
University of Oxford, having an administrative office at Wellington
8
Square, Oxford OX1 2JD, UK.
9
10
This file is part of Chaste.
11
12
Redistribution and use in source and binary forms, with or without
13
modification, are permitted provided that the following conditions are met:
14
* Redistributions of source code must retain the above copyright notice,
15
this list of conditions and the following disclaimer.
16
* Redistributions in binary form must reproduce the above copyright notice,
17
this list of conditions and the following disclaimer in the documentation
18
and/or other materials provided with the distribution.
19
* Neither the name of the University of Oxford nor the names of its
20
contributors may be used to endorse or promote products derived from this
21
software without specific prior written permission.
22
23
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
27
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
29
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
32
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
34
*/
35
36
#ifndef IMMERSEDBOUNDARYFFTINTERFACE_HPP_
37
#define IMMERSEDBOUNDARYFFTINTERFACE_HPP_
38
39
#include <complex>
40
#include <fftw3.h>
41
#include "ImmersedBoundaryMesh.hpp"
42
#include <pocketfft_hdronly.h>
43
48
template
<
unsigned
DIM>
49
class
ImmersedBoundaryFftInterface
50
{
51
protected
:
52
54
ImmersedBoundaryMesh<DIM,DIM>
*
mpMesh
;
55
57
double
*
mpInputArray
;
58
60
std::complex<double>*
mpComplexArray
;
61
63
double
*
mpOutputArray
;
64
66
pocketfft::shape_t
mRealDims
;
67
69
pocketfft::shape_t
mCompDims
;
70
72
unsigned
mHowManyForward
;
73
75
unsigned
mHowManyInverse
;
76
78
int
mRealSep
;
79
81
int
mCompSep
;
82
84
long
int
mRealStride
;
85
87
long
int
mCompStride
;
88
89
public
:
90
100
ImmersedBoundaryFftInterface
(
ImmersedBoundaryMesh<DIM,DIM>
* pMesh,
101
double
* pIn,
102
std::complex<double>* pComplex,
103
double
* pOut,
104
bool
activeSources);
105
109
ImmersedBoundaryFftInterface
() =
delete
;
110
114
virtual
~ImmersedBoundaryFftInterface
();
115
117
void
FftExecuteForward
();
118
120
void
FftExecuteInverse
();
121
122
friend
class
TestImmersedBoundaryFftInterface;
123
};
124
125
#endif
/*IMMERSEDBOUNDARYFFTINTERFACE_HPP_*/
ImmersedBoundaryFftInterface
Definition
ImmersedBoundaryFftInterface.hpp:50
ImmersedBoundaryFftInterface::~ImmersedBoundaryFftInterface
virtual ~ImmersedBoundaryFftInterface()
Definition
ImmersedBoundaryFftInterface.cpp:88
ImmersedBoundaryFftInterface::mHowManyForward
unsigned mHowManyForward
Definition
ImmersedBoundaryFftInterface.hpp:72
ImmersedBoundaryFftInterface::mpInputArray
double * mpInputArray
Definition
ImmersedBoundaryFftInterface.hpp:57
ImmersedBoundaryFftInterface::mpMesh
ImmersedBoundaryMesh< DIM, DIM > * mpMesh
Definition
ImmersedBoundaryFftInterface.hpp:54
ImmersedBoundaryFftInterface::mCompStride
long int mCompStride
Definition
ImmersedBoundaryFftInterface.hpp:87
ImmersedBoundaryFftInterface::mCompDims
pocketfft::shape_t mCompDims
Definition
ImmersedBoundaryFftInterface.hpp:69
ImmersedBoundaryFftInterface::mpComplexArray
std::complex< double > * mpComplexArray
Definition
ImmersedBoundaryFftInterface.hpp:60
ImmersedBoundaryFftInterface::FftExecuteInverse
void FftExecuteInverse()
Definition
ImmersedBoundaryFftInterface.cpp:107
ImmersedBoundaryFftInterface::FftExecuteForward
void FftExecuteForward()
Definition
ImmersedBoundaryFftInterface.cpp:93
ImmersedBoundaryFftInterface::mHowManyInverse
unsigned mHowManyInverse
Definition
ImmersedBoundaryFftInterface.hpp:75
ImmersedBoundaryFftInterface::mRealSep
int mRealSep
Definition
ImmersedBoundaryFftInterface.hpp:78
ImmersedBoundaryFftInterface::mRealDims
pocketfft::shape_t mRealDims
Definition
ImmersedBoundaryFftInterface.hpp:66
ImmersedBoundaryFftInterface::ImmersedBoundaryFftInterface
ImmersedBoundaryFftInterface()=delete
ImmersedBoundaryFftInterface::mCompSep
int mCompSep
Definition
ImmersedBoundaryFftInterface.hpp:81
ImmersedBoundaryFftInterface::mpOutputArray
double * mpOutputArray
Definition
ImmersedBoundaryFftInterface.hpp:63
ImmersedBoundaryFftInterface::mRealStride
long int mRealStride
Definition
ImmersedBoundaryFftInterface.hpp:84
ImmersedBoundaryMesh
Definition
ImmersedBoundaryMesh.hpp:70
mesh
src
immersed_boundary
ImmersedBoundaryFftInterface.hpp
Generated by
1.9.8