Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79854116
bem_interface.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Aug 28, 15:06
Size
3 KB
Mime Type
text/x-c++
Expires
Fri, Aug 30, 15:06 (2 d)
Engine
blob
Format
Raw Data
Handle
20246487
Attached To
rTAMAAS tamaas
bem_interface.hh
View Options
/**
*
* @author Guillaume Anciaux <guillaume.anciaux@epfl.ch>
*
* @section LICENSE
*
* Copyright (©) 2016 EPFL (Ecole Polytechnique Fédérale de
* Lausanne) Laboratory (LSMS - Laboratoire de Simulation en Mécanique des
* Solides)
*
* Tamaas is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* Tamaas is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Tamaas. If not, see <http://www.gnu.org/licenses/>.
*
*/
/* -------------------------------------------------------------------------- */
#ifndef BEM_INTERFACE_H
#define BEM_INTERFACE_H
#include "surface.hh"
#include "fftransform.hh"
#include "fft_plan_manager.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_TAMAAS__
class
BemInterface
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
BemInterface
(
Surface
<
Real
>
&
surface
)
:
surface
(
surface
),
spectral_surface
(
surface
.
size
(),
surface
.
getL
())
{
this
->
computeSpectralSurface
();
};
virtual
~
BemInterface
(){};
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
protected
:
//! compute the displacements from the tractions
virtual
void
computeDisplacementsFromTractions
(){
SURFACE_FATAL
(
"TO BE IMPLEMENTED"
)};
//! compute the tractions from the displacements
virtual
void
computeTractionsFromDisplacements
(){
SURFACE_FATAL
(
"TO BE IMPLEMENTED"
)};
public
:
//! compute the spectral surface
virtual
void
computeSpectralSurface
(){
FFTransform
<
Real
,
2
>
&
plan
=
FFTPlanManager
::
get
().
createPlan
(
surface
,
spectral_surface
);
plan
.
forwardTransform
();
};
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public
:
//! return the actual tractions
virtual
const
Surface
<
Real
>
&
getTractions
()
const
=
0
;
//! return the actual displacements
virtual
const
Surface
<
Real
>
&
getDisplacements
()
const
=
0
;
//! return the manipulated surface
const
Surface
<
Real
>
&
getSurface
()
const
{
return
this
->
surface
;};
//! return the manipulated surface in fourier space
const
SurfaceComplex
<
Real
>
&
getSpectralSurface
()
const
{
return
this
->
spectral_surface
;};
//! return the manipulated surface
void
setSurface
(
Surface
<
Real
>
&
surface
){
this
->
surface
=
surface
;};
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
protected
:
//! the surface profile we work with
Surface
<
Real
>
&
surface
;
//! the surface profile in fourier space
SurfaceComplex
<
Real
>
spectral_surface
;
};
__END_TAMAAS__
#endif
/* BEM_INTERFACE_H */
Event Timeline
Log In to Comment