Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F75261199
compute_energydensity.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
Thu, Aug 1, 07:03
Size
2 KB
Mime Type
text/x-c++
Expires
Sat, Aug 3, 07:03 (2 d)
Engine
blob
Format
Raw Data
Handle
19499478
Attached To
rLIBMULTISCALE LibMultiScale
compute_energydensity.hh
View Options
/**
* @file compute_energydensity.hh
*
* @author Guillaume Anciaux <guillaume.anciaux@epfl.ch>
* @author Srinivasa Babu Ramisetti <srinivasa.ramisetti@epfl.ch>
*
* @date Sat Nov 30 17:14:16 2013
*
* @brief This computes the spectral energy density for 1D models
*
* @section LICENSE
*
* Copyright (©) 2010-2011 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* LibMultiScale 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.
*
* LibMultiScale 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 LibMultiScale. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef __LIBMULTISCALE_COMPUTE_ENERGYDENSITY_HH__
#define __LIBMULTISCALE_COMPUTE_ENERGYDENSITY_HH__
/* -------------------------------------------------------------------------- */
#include "compute.hh"
#include "domain_interface.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_LIBMULTISCALE__
/** Class ComputeEnergyDensity
* Implementation of a compute for energy density
*/
template
<
typename
_Input
>
class
ComputeEnergyDensity
:
public
Compute
<
_Input
>
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
ComputeEnergyDensity
(
const
std
::
string
&
name
,
UInt
dim
=
1
)
:
Compute
<
_Input
>
(
name
,
dim
)
{
shift_fft
=
1.0
;
};
ComputeEnergyDensity
(
const
std
::
string
&
name
,
ComponentLMInterface
&
d
)
:
Compute
<
_Input
>
(
name
,
d
,
1
)
{
shift_fft
=
1.0
;
};
~
ComputeEnergyDensity
(){};
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
void
build
(
_Input
&
cont
);
void
declareParams
();
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
protected
:
Real
shift_fft
;
};
/* -------------------------------------------------------------------------- */
__END_LIBMULTISCALE__
#endif
/* __LIBMULTISCALE_COMPUTE_ENERGYDENSITY_HH__ */
Event Timeline
Log In to Comment