MC_HAMR  v0.01
Monte Carlo Simulation Software for Atomistic Models of Magnetic Materials for Heat Assisted Magnetic Recording
Public Member Functions | Protected Attributes | List of all members
field_2d_h Class Reference

#include <field_type.hpp>

Inheritance diagram for field_2d_h:
Inheritance graph
[legend]
Collaboration diagram for field_2d_h:
Collaboration graph
[legend]

Public Member Functions

 field_2d_h ()
 
 field_2d_h (int size, bool isperio)
 
 field_2d_h (int size, bool isperio, int p_pad)
 
 field_2d_h (field_type &other)
 
 field_2d_h (const field_2d_h &other)
 
 ~field_2d_h ()
 
void h_access (std::vector< int > &position, std::vector< double > &out)
 
void h_next (bool &finish, std::vector< int > &pos, std::vector< double > &out)
 
void fill_ghost (int num_rows)
 
field_2d_hoperator= (const field_2d_h &other)
 
void get_2dfield_h (double **&x, double **&y, double **&z) const
 
void h_adjacent (std::vector< int > &position, double **out)
 
void fill_rand (std::vector< int > &position)
 
void fill_one (std::vector< int > &position)
 
void fill_zero (std::vector< int > &position)
 
void fill_val_h (std::vector< int > &position, double x, double y, double z)
 
void add_val_h (std::vector< int > &position, std::vector< double > &in)
 
void change_to_test (std::vector< int > &position, ham_type *hamil)
 
void send_data (int dest_rank)
 
void recv_data (int src_rank)
 
- Public Member Functions inherited from field_2d
 field_2d ()
 
 ~field_2d ()
 
void next (bool &finish, std::vector< int > &pos)
 
bool check_zero (std::vector< int > &position)
 
void get_2dzero (bool **&x) const
 
int findnum ()
 
- Public Member Functions inherited from field_type
 field_type ()
 
 ~field_type ()
 
virtual void i_access (std::vector< int > &postion, int &out)
 
virtual void i_adjacent (std::vector< int > &position, int *out)
 
virtual void h_2adjacent (std::vector< int > &position, double **out)
 
virtual void h_arb_adj (std::vector< int > &position, std::vector< int > &dxs, std::vector< int > &dys, std::vector< int > &dzs, double **out, int num)
 
virtual void i_next (bool &finish, std::vector< int > &pos, int &out)
 
int get_insize () const
 
int get_totsize () const
 
bool get_perio () const
 
int get_dim () const
 
virtual void fill_val_i (std::vector< int > &position, int val)
 
void allzero ()
 
virtual void new_mem ()
 
virtual void get_2dfield_i (int **&x) const
 
virtual void get_3dfield_i (int ***&x) const
 
virtual void get_1dfield_h (double *&x, double *&y, double *&z) const
 
virtual void get_3dfield_h (double ***&x, double ***&y, double ***&z) const
 
virtual void get_3dzero (bool ***&x) const
 
virtual void print (std::string filename, std::string arrname)
 
virtual void print_setup (const std::string filename, const std::string groupname, const int Tmax, const int Hmax)
 
int get_ft () const
 

Protected Attributes

double ** spinx
 
double ** spiny
 
double ** spinz
 
int dirsx [4]
 
int dirsy [4]
 
- Protected Attributes inherited from field_2d
bool ** iszero
 
- Protected Attributes inherited from field_type
int ft
 
int dim
 
int insize
 
int totsize
 
bool periodic
 

Constructor & Destructor Documentation

field_2d_h::field_2d_h ( )
field_2d_h::field_2d_h ( int  size,
bool  isperio 
)
field_2d_h::field_2d_h ( int  size,
bool  isperio,
int  p_pad 
)
field_2d_h::field_2d_h ( field_type other)
field_2d_h::field_2d_h ( const field_2d_h other)
field_2d_h::~field_2d_h ( )

Member Function Documentation

void field_2d_h::add_val_h ( std::vector< int > &  position,
std::vector< double > &  in 
)
virtual

Reimplemented from field_type.

void field_2d_h::change_to_test ( std::vector< int > &  position,
ham_type hamil 
)
virtual

Reimplemented from field_type.

void field_2d_h::fill_ghost ( int  num_rows)
virtual

Reimplemented from field_type.

void field_2d_h::fill_one ( std::vector< int > &  position)
virtual

Reimplemented from field_type.

void field_2d_h::fill_rand ( std::vector< int > &  position)
virtual

Reimplemented from field_type.

void field_2d_h::fill_val_h ( std::vector< int > &  position,
double  x,
double  y,
double  z 
)
virtual

Reimplemented from field_type.

void field_2d_h::fill_zero ( std::vector< int > &  position)
virtual

Reimplemented from field_type.

void field_2d_h::get_2dfield_h ( double **&  x,
double **&  y,
double **&  z 
) const
virtual

Reimplemented from field_type.

void field_2d_h::h_access ( std::vector< int > &  position,
std::vector< double > &  out 
)
virtual

Reimplemented from field_type.

void field_2d_h::h_adjacent ( std::vector< int > &  position,
double **  out 
)
virtual

Reimplemented from field_type.

void field_2d_h::h_next ( bool &  finish,
std::vector< int > &  pos,
std::vector< double > &  out 
)
virtual

Reimplemented from field_type.

field_2d_h& field_2d_h::operator= ( const field_2d_h other)
void field_2d_h::recv_data ( int  src_rank)
virtual

Reimplemented from field_type.

void field_2d_h::send_data ( int  dest_rank)
virtual

Reimplemented from field_type.

Member Data Documentation

int field_2d_h::dirsx[4]
protected
int field_2d_h::dirsy[4]
protected
double** field_2d_h::spinx
protected
double** field_2d_h::spiny
protected
double** field_2d_h::spinz
protected

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