Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rough implementation of transition plane sampling
- Loading branch information
M. Sallermann
authored and
M. Sallermann
committed
Apr 28, 2022
1 parent
6054f37
commit 4513e36
Showing
9 changed files
with
334 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#pragma once | ||
#ifndef SPIRIT_CORE_ENGINE_METHOD_TS_SAMPLING_HPP | ||
#define SPIRIT_CORE_ENGINE_METHOD_TS_SAMPLING_HPP | ||
|
||
#include <engine/Method_MC.hpp> | ||
#include <deque> | ||
|
||
|
||
namespace Engine | ||
{ | ||
/* | ||
Transition plane sampling | ||
*/ | ||
class Method_TS_Sampling : public Method_MC | ||
{ | ||
public: | ||
Method_TS_Sampling( std::shared_ptr<Data::Spin_System> system, int idx_img, int idx_chain ); | ||
|
||
void Set_Transition_Plane_Normal( vectorfield & spins_minimum, vectorfield & unstable_mode ); | ||
void Compute_Transition_Plane_Normal( ); | ||
|
||
std::string Name() override; | ||
|
||
private: | ||
void Iteration() override; | ||
// void Displace_Spin(int ispin, vectorfield & spins_new, std::uniform_real_distribution<scalar> & distribution, std::vector<int> & changed_indices, vectorfield & old_spins) override; | ||
|
||
vectorfield transition_plane_normal; | ||
std::uniform_int_distribution<> distribution_idx; | ||
std::deque<int> rejected; | ||
}; | ||
|
||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.