Exemplo n.º 1
0
	virtual void ApplyConfigSection(const ConfigSection &config)
	{
		CustomPotentialSphericalBase<Rank>::ApplyConfigSection
			(config);
		config.Get("inter_nuclear_r", R);
		config.Get("theta_inter_nucl", ThetaR);
	}
Exemplo n.º 2
0
 void ApplyConfigSection(const ConfigSection &config)
 {
     config.Get("radial_rank_1", RadialRank1);
     config.Get("radial_rank_2", RadialRank2);
     config.Get("inner_box_size", InnerBoxSize);
     config.Get("width", Width);
 }
Exemplo n.º 3
0
	void ApplyConfigSection(const ConfigSection &config)
	{
		config.Get("radial_rank", RadialRank);
		config.Get("angular_rank", AngularRank);
		//charge with sign
		config.Get("charge", Charge);
	}
Exemplo n.º 4
0
	/*
	 * Called once with the corresponding config section
	 * from the configuration file. Do all one time set up routines
	 * here.
	 */
	void ApplyConfigSection(const ConfigSection &config)
	{
		config.Get("zero_before", ZeroBefore);
		config.Get("zero_after", ZeroAfter);
		config.Get("step_rank", StepRank);

	}
Exemplo n.º 5
0
	/*
	 * Called once with the corresponding config section
	 * from the configuration file. Do all one time set up routines
	 * here.
	 */
	void ApplyConfigSection(const ConfigSection &config)
	{
		config.Get("field_strength", FieldStrength);
		config.Get("frequency", Frequency);
		config.Get("duration", Duration);
		config.Get("peak_time", PeakTime);
		config.Get("phase", Phase);
	}
Exemplo n.º 6
0
	/*
	 * Called once with the corresponding config section
	 * from the configuration file. Do all one time set up routines
	 * here.
	 */
	void ApplyConfigSection(const ConfigSection &config)
	{
		config.Get("pulse_duration", PulseDuration);
		config.Get("frequency", Frequency);
		config.Get("amplitude", Amplitude);

		convolutionFrequency = M_PI / PulseDuration;
	}
Exemplo n.º 7
0
 /*
  * Called once with the corresponding config section
  * from the configuration file. Do all one time set up routines
  * here.
  */
 void ApplyConfigSection(const ConfigSection &config)
 {
     config.Get("radial_rank_1", radialRank1);
     config.Get("radial_rank_2", radialRank2);
     config.Get("absorber_start", absorberStart);
     config.Get("absorber_length", absorberLength);
     config.Get("scaling_real", scalingReal);
     config.Get("scaling_imag", scalingImag);
     config.Get("factor_real", factorReal);
     config.Get("factor_imag", factorImag);
 }
Exemplo n.º 8
0
	void ApplyConfigSection(const ConfigSection &config)
	{
		config.Get("charge", Charge);
		config.Get("laser_frequency", LaserFrequency);
		config.Get("laser_intensity", LaserIntensity);
		
		double laserTurnOnCycles = 0;
		config.Get("laser_turn_on_cycles", laserTurnOnCycles);
		LaserTurnOnTime = laserTurnOnCycles * 2 * M_PI / LaserFrequency;
		
	}
Exemplo n.º 9
0
void GmresWrapper<Rank>::ApplyConfigSection(const ConfigSection &config)
{
	config.Get("krylov_basis_size", Solver.BasisSize);

	if (config.HasValue("krylov_tolerance"))
	{
		config.Get("krylov_tolerance", Solver.Tolerance);
	}

	//Perform double orthogonalization step?
	if (config.HasValue("krylov_double_orthogonalization"))
	{
		bool performDoubleOrthogonalization;
		config.Get("krylov_double_orthogonalization", performDoubleOrthogonalization);
		cout << "Using doubleorth = " << performDoubleOrthogonalization << endl;
		Solver.PerformDoubleOrthogonalization = performDoubleOrthogonalization;
	}
}
Exemplo n.º 10
0
void CombinedRepresentation<Rank>::ApplyConfigSection(const ConfigSection &config) 
{
	//Do this manually for each sub-representation

	if (config.HasValue("innerproduct_algorithm"))
	{
		config.Get("innerproduct_algorithm", Algorithm);
	}
}
Exemplo n.º 11
0
void EditorTool::LoadSettings( ConfigSection& pSection )
{
    // Get our information from the config file.
    mVisible =  (Bool)pSection.Get( "Visible",  true );
    mPosX    = (Int32)pSection.Get( "PosX",     (Int32)10 );
    mPosY    = (Int32)pSection.Get( "PosY",     (Int32)10 );
    mWidth   = (Int32)pSection.Get( "Width",    (Int32)50 );
    mHeight  = (Int32)pSection.Get( "Height",   (Int32)50 );

    // Set the window information.
    mWindow->resize( mWidth, mHeight );

    if( mWindow->parentWidget() )
        mWindow->parentWidget()->move( mPosX, mPosY );

    // Show or hide the window depending of the setting.
    if( mVisible )
        Show();
    else
        Hide();
}
Exemplo n.º 12
0
    void ApplyConfigSection(const ConfigSection &config)
    {
        config.Get("energy_cutoff", EnergyCutoff);
        config.Get("grid_max", GridMax);
        config.Get("absorber_start", Start);
        config.Get("radial_rank_1", RadialRank1);
        config.Get("radial_rank_2", RadialRank2);

        A = 0.112449;
        B = 0.0082735;
        C = 2.62206;

        //Calculate absorber start
        double kmin = std::sqrt(2*EnergyCutoff);
        Start = GridMax - C / (2 * Delta * kmin);

        //Calculate delta
        double kmin = std::sqrt(2*EnergyCutoff);
        Delta = C / (2 * kmin * (GridMax - Start));

        cout << "Manolopoulos absorber" << endl;
        cout << "  Absorber starts at " << Start << std::endl;
        cout << "  Delta parameter = " << Delta << std::endl;
    }
Exemplo n.º 13
0
	void ApplyConfigSection(const ConfigSection &config)
	{
		config.Get("charge", Charge);
		config.Get("softing", Softing);
	}
Exemplo n.º 14
0
	virtual void ApplyConfigSection(const ConfigSection &config)
	{
		CustomPotentialSphericalBase<Rank>::ApplyConfigSection(config);
		config.Get("mass", Mass);
	}
Exemplo n.º 15
0
	void ApplyConfigSection(const ConfigSection &config)
	{
		config.Get("radial_rank1", RadialRank1);
		config.Get("radial_rank2", RadialRank2);
		config.Get("angular_rank", AngularRank);
	}
Exemplo n.º 16
0
	/*
	 * Called once with the corresponding config section
	 * from the configuration file. Do all one time set up routines
	 * here.
	 */
	void ApplyConfigSection(const ConfigSection &config)
	{
		config.Get("nuclear_separation", NuclearSeparation);
		config.Get("nuclear_softing", NuclearSofting);
		config.Get("repulsion_softing", RepulsionSofting);
	}
Exemplo n.º 17
0
void ThetaRepresentation::ApplyConfigSection(const ConfigSection &config)
{
		int maxl;
		config.Get("maxl", maxl);
		SetupRepresentation(maxl);
}	
Exemplo n.º 18
0
void Propagator<Rank>::ApplyConfigSection(const ConfigSection &config)
{
	config.Get("mass", Mass);
	cout << "TransformedGridPropagator: Mass = " << Mass << endl;
}
Exemplo n.º 19
0
 void ApplyConfigSection(const ConfigSection &config)
 {
     config.Get("radial_rank_1", RadialRank1);
     config.Get("radial_rank_2", RadialRank2);
     config.Get("box_size", BoxSize);
 }
Exemplo n.º 20
0
	virtual void ApplyConfigSection(const ConfigSection &config)
	{
		CustomPotentialCoupledSphericalBase<Rank>::ApplyConfigSection(config);
		config.Get("scaling", Scaling);
	}
Exemplo n.º 21
0
 /*
  * Called once with the corresponding config section
  * from the configuration file. Do all one time set up routines
  * here.
  */
 void ApplyConfigSection(const ConfigSection &config)
 {
     config.Get("mass", mass);
 }
Exemplo n.º 22
0
 /*
  * Called once with the corresponding config section
  * from the configuration file. Do all one time set up routines
  * here.
  */
 void ApplyConfigSection(const ConfigSection &config)
 {
     config.Get("z", Z);
     config.Get("radial_rank1", RadialRank1);
     config.Get("radial_rank2", RadialRank2);
 }
Exemplo n.º 23
0
	void ApplyConfigSection(const ConfigSection &config)
	{
		config.Get("soft", soft);
		config.Get("charge", charge);
	}
Exemplo n.º 24
0
	/*
	 * Called once with the corresponding config section
	 * from the configuration file. Do all one time set up routines
	 * here.
	 */
	void ApplyConfigSection(const ConfigSection &config)
	{
		config.Get("strength", Strength);
		config.Get("width", Width);
	}
Exemplo n.º 25
0
void ExpokitPropagator<Rank>::ApplyConfigSection(const ConfigSection &config)
{
	config.Get("krylov_basis_size", BasisSize);
	config.Get("krylov_tolerance", Tolerance);
	config.Get("krylov_norm", MatrixNorm);
}
Exemplo n.º 26
0
void RungeKuttaWrapper<Rank>::ApplyConfigSection(const ConfigSection &config)
{

	config.Get("integrator_type", this->IntegratorType);

}