Feellgood
Public Member Functions | Public Attributes | List of all members
AbsorbingEnds Struct Reference

#include <absorbing_ends.h>

Public Member Functions

double alpha (const double alpha0, const double x) const
 

Public Attributes

bool enable = false
 
Nodes::index axis = Nodes::IDX_Z
 
double length = 0
 
double alpha_max = 1
 
std::vector< std::string > regions
 
double lo = 0
 
double hi = 0
 

Detailed Description

Along an axis, over a length \( L \) at each end of the union of the selected volume regions (not at the ends of each of them), the damping goes from the physical value \( \alpha_0 \) of the region to \( \alpha_{\max} \): \( \alpha = \alpha_0 + (\alpha_{\max}-\alpha_0) \sin^2\left(\frac{\pi}{2}\frac{s}{L}\right) \), where \( s \) is the depth in the zone (0 at its inner boundary, \( L \) at the end of the union), so that \( d\alpha/ds = 0 \) at both boundaries of the zone. The damping is evaluated at the Gauss points of the LLG assembly.

Member Function Documentation

◆ alpha()

double AbsorbingEnds::alpha ( const double  alpha0,
const double  x 
) const
inline

damping at the coordinate x (along the axis, in meters) of a region of damping alpha0

Member Data Documentation

◆ alpha_max

double AbsorbingEnds::alpha_max = 1

damping at the two ends of the union of the selected regions

◆ axis

Nodes::index AbsorbingEnds::axis = Nodes::IDX_Z

axis of the wire

◆ enable

bool AbsorbingEnds::enable = false

if false, the damping is the one of the regions everywhere

◆ hi

double AbsorbingEnds::hi = 0

upper bound of the union of the selected regions along the axis, in meters (set from the mesh)

◆ length

double AbsorbingEnds::length = 0

length of each absorbing zone, in meters

◆ lo

double AbsorbingEnds::lo = 0

lower bound of the union of the selected regions along the axis, in meters (set from the mesh)

◆ regions

std::vector<std::string> AbsorbingEnds::regions

names of the selected volume regions (empty: all the volume regions)


The documentation for this struct was generated from the following file: