Пример #1
0
	virtual void ApplyConfigSection(const ConfigSection &config)
	{
		CustomPotentialSphericalBase<Rank>::ApplyConfigSection
			(config);
		config.Get("inter_nuclear_r", R);
		config.Get("theta_inter_nucl", ThetaR);
	}
Пример #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);
 }
Пример #3
0
	void ApplyConfigSection(const ConfigSection &config)
	{
		config.Get("radial_rank", RadialRank);
		config.Get("angular_rank", AngularRank);
		//charge with sign
		config.Get("charge", Charge);
	}
Пример #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);

	}
Пример #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);
	}
Пример #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;
	}
Пример #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);
 }
Пример #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;
		
	}
Пример #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;
	}
}
Пример #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);
	}
}
Пример #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();
}
Пример #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;
    }
Пример #13
0
	void ApplyConfigSection(const ConfigSection &config)
	{
		config.Get("charge", Charge);
		config.Get("softing", Softing);
	}
Пример #14
0
	virtual void ApplyConfigSection(const ConfigSection &config)
	{
		CustomPotentialSphericalBase<Rank>::ApplyConfigSection(config);
		config.Get("mass", Mass);
	}
Пример #15
0
	void ApplyConfigSection(const ConfigSection &config)
	{
		config.Get("radial_rank1", RadialRank1);
		config.Get("radial_rank2", RadialRank2);
		config.Get("angular_rank", AngularRank);
	}
Пример #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);
	}
Пример #17
0
void ThetaRepresentation::ApplyConfigSection(const ConfigSection &config)
{
		int maxl;
		config.Get("maxl", maxl);
		SetupRepresentation(maxl);
}	
Пример #18
0
void Propagator<Rank>::ApplyConfigSection(const ConfigSection &config)
{
	config.Get("mass", Mass);
	cout << "TransformedGridPropagator: Mass = " << Mass << endl;
}
Пример #19
0
 void ApplyConfigSection(const ConfigSection &config)
 {
     config.Get("radial_rank_1", RadialRank1);
     config.Get("radial_rank_2", RadialRank2);
     config.Get("box_size", BoxSize);
 }
Пример #20
0
	virtual void ApplyConfigSection(const ConfigSection &config)
	{
		CustomPotentialCoupledSphericalBase<Rank>::ApplyConfigSection(config);
		config.Get("scaling", Scaling);
	}
Пример #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);
 }
Пример #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);
 }
Пример #23
0
	void ApplyConfigSection(const ConfigSection &config)
	{
		config.Get("soft", soft);
		config.Get("charge", charge);
	}
Пример #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);
	}
Пример #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);
}
Пример #26
0
void RungeKuttaWrapper<Rank>::ApplyConfigSection(const ConfigSection &config)
{

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

}