Class: Rafflesia::SimulationGromacsMdpSettings

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/simulations/simulation_gromacs_mdp_settings.rb

Constant Summary collapse

HASH_ATTRS =
{
  compressed_output_step_interval: :compressed_output_step_interval,
  constraints: :constraints,
  coulomb_type: :coulomb_type,
  cutoff_scheme: :cutoff_scheme,
  duration_ps: :duration_ps,
  integrator: :integrator,
  neighbor_search_step_interval: :neighbor_search_step_interval,
  pressure_coupling: :pressure_coupling,
  reference_pressure_bar: :reference_pressure_bar,
  reference_temperature_kelvin: :reference_temperature_kelvin,
  step_count: :step_count,
  temperature_coupling: :temperature_coupling,
  temperature_groups: :temperature_groups,
  time_step_ps: :time_step_ps,
  vdw_type: :vdw_type
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SimulationGromacsMdpSettings

Returns a new instance of SimulationGromacsMdpSettings.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/rafflesia/simulations/simulation_gromacs_mdp_settings.rb', line 43

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @compressed_output_step_interval = hash[:compressed_output_step_interval]
  @constraints = hash[:constraints]
  @coulomb_type = hash[:coulomb_type]
  @cutoff_scheme = hash[:cutoff_scheme]
  @duration_ps = hash[:duration_ps]
  @integrator = hash[:integrator]
  @neighbor_search_step_interval = hash[:neighbor_search_step_interval]
  @pressure_coupling = hash[:pressure_coupling]
  @reference_pressure_bar = hash[:reference_pressure_bar]
  @reference_temperature_kelvin = hash[:reference_temperature_kelvin]
  @step_count = hash[:step_count]
  @temperature_coupling = hash[:temperature_coupling]
  @temperature_groups = hash[:temperature_groups]
  @time_step_ps = hash[:time_step_ps]
  @vdw_type = hash[:vdw_type]
end

Instance Attribute Details

#compressed_output_step_intervalObject

Returns the value of attribute compressed_output_step_interval.



26
27
28
# File 'lib/rafflesia/simulations/simulation_gromacs_mdp_settings.rb', line 26

def compressed_output_step_interval
  @compressed_output_step_interval
end

#constraintsObject

Returns the value of attribute constraints.



26
27
28
# File 'lib/rafflesia/simulations/simulation_gromacs_mdp_settings.rb', line 26

def constraints
  @constraints
end

#coulomb_typeObject

Returns the value of attribute coulomb_type.



26
27
28
# File 'lib/rafflesia/simulations/simulation_gromacs_mdp_settings.rb', line 26

def coulomb_type
  @coulomb_type
end

#cutoff_schemeObject

Returns the value of attribute cutoff_scheme.



26
27
28
# File 'lib/rafflesia/simulations/simulation_gromacs_mdp_settings.rb', line 26

def cutoff_scheme
  @cutoff_scheme
end

#duration_psObject

Returns the value of attribute duration_ps.



26
27
28
# File 'lib/rafflesia/simulations/simulation_gromacs_mdp_settings.rb', line 26

def duration_ps
  @duration_ps
end

#integratorObject

Returns the value of attribute integrator.



26
27
28
# File 'lib/rafflesia/simulations/simulation_gromacs_mdp_settings.rb', line 26

def integrator
  @integrator
end

#neighbor_search_step_intervalObject

Returns the value of attribute neighbor_search_step_interval.



26
27
28
# File 'lib/rafflesia/simulations/simulation_gromacs_mdp_settings.rb', line 26

def neighbor_search_step_interval
  @neighbor_search_step_interval
end

#pressure_couplingObject

Returns the value of attribute pressure_coupling.



26
27
28
# File 'lib/rafflesia/simulations/simulation_gromacs_mdp_settings.rb', line 26

def pressure_coupling
  @pressure_coupling
end

#reference_pressure_barObject

Returns the value of attribute reference_pressure_bar.



26
27
28
# File 'lib/rafflesia/simulations/simulation_gromacs_mdp_settings.rb', line 26

def reference_pressure_bar
  @reference_pressure_bar
end

#reference_temperature_kelvinObject

Returns the value of attribute reference_temperature_kelvin.



26
27
28
# File 'lib/rafflesia/simulations/simulation_gromacs_mdp_settings.rb', line 26

def reference_temperature_kelvin
  @reference_temperature_kelvin
end

#step_countObject

Returns the value of attribute step_count.



26
27
28
# File 'lib/rafflesia/simulations/simulation_gromacs_mdp_settings.rb', line 26

def step_count
  @step_count
end

#temperature_couplingObject

Returns the value of attribute temperature_coupling.



26
27
28
# File 'lib/rafflesia/simulations/simulation_gromacs_mdp_settings.rb', line 26

def temperature_coupling
  @temperature_coupling
end

#temperature_groupsObject

Returns the value of attribute temperature_groups.



26
27
28
# File 'lib/rafflesia/simulations/simulation_gromacs_mdp_settings.rb', line 26

def temperature_groups
  @temperature_groups
end

#time_step_psObject

Returns the value of attribute time_step_ps.



26
27
28
# File 'lib/rafflesia/simulations/simulation_gromacs_mdp_settings.rb', line 26

def time_step_ps
  @time_step_ps
end

#vdw_typeObject

Returns the value of attribute vdw_type.



26
27
28
# File 'lib/rafflesia/simulations/simulation_gromacs_mdp_settings.rb', line 26

def vdw_type
  @vdw_type
end