Octopus
system_oct_m::system_t Type Reference

Abstract class for systems. More...

Detailed Description

Abstract class for systems.

All explicit systems are derived from this class.

Definition at line 164 of file system.F90.

Inheritance diagram for system_oct_m::system_t:
Inheritance graph

Public Attributes

class(algorithm_t), pointer, public algo => null()
 
integer, public accumulated_loop_ticks
 
integer, public interaction_timing
 parameter to determine if interactions should use the quantities at the exact time or if retardation is allowed More...
 
type(integer_list_t), public supported_interactions
 
type(interaction_list_t), public interactions
 List with all the interactions of this system. More...
 
type(mpi_grp_t), public grp
 mpi group for this system More...
 
real(8), public kinetic_energy
 Energy not from interactions, like the kinetic energy. More...
 
real(8), public potential_energy
 Energy from the interactions with external systems. More...
 
real(8), public internal_energy
 Energy from the interactions with itself and for containers the kinetic energy of its constituents. More...
 
real(8), public total_energy
 Sum of internal, external, and self energy. More...
 
- Public Attributes inherited from interaction_partner_oct_m::interaction_partner_t
type(namespace_t), public namespace
 
type(clock_t), public clock
 
type(space_t), public space
 
type(integer_list_t), public supported_interactions_as_partner
 list of interactions, which support this interaction_partner_t as partner More...
 
type(quantity_t), dimension(max_quantities), public quantities
 Array of all possible quantities. The elements of the array are accessed using the quantity`s identifiers. More...
 

Private Member Functions

procedure execute_algorithm => system_execute_algorithm
 perform one or more algorithmic operations More...
 
procedure reset_clocks => system_reset_clocks
 
procedure update_exposed_quantities => system_update_exposed_quantities
 update all exposed quantities of the system. More...
 
procedure init_algorithm => system_init_algorithm
 
procedure algorithm_finished => system_algorithm_finished
 
procedure init_clocks => system_init_clocks
 
procedure init_all_interactions => system_init_all_interactions
 
procedure init_parallelization => system_init_parallelization
 Basic functionality: copy the MPI group. This function needs to be implemented by extended types that need more initialization for their parallelization. More...
 
procedure update_interactions => system_update_interactions
 
procedure update_interactions_start => system_update_interactions_start
 
procedure update_interactions_finish => system_update_interactions_finish
 
procedure propagation_start => system_propagation_start
 
procedure propagation_finish => system_propagation_finish
 
procedure iteration_info => system_iteration_info
 
procedure restart_write => system_restart_write
 
procedure restart_read => system_restart_read
 
procedure output_start => system_output_start
 
procedure output_write => system_output_write
 
procedure output_finish => system_output_finish
 
procedure process_is_slave => system_process_is_slave
 
procedure start_barrier => system_start_barrier
 
procedure end_barrier => system_end_barrier
 
procedure arrived_at_barrier => system_arrived_at_barrier
 
procedure arrived_at_any_barrier => system_arrived_at_any_barrier
 
procedure update_potential_energy => system_update_potential_energy
 Calculate the potential energy of the system. The potential energy is defined as the sum of all energies arising from interactions with external systems. (Note that multisystems override this function) More...
 
procedure update_internal_energy => system_update_internal_energy
 Calculate the internal energy of the system. The internal energy is defined as the sum of all energies arising from intra-interactions and the entropy terms (if available). (Note that multisystems override this function) More...
 
procedure update_total_energy => system_update_total_energy
 Calculate the total energy of the system. The total energy is defined as the sum of the kinetic, the internal and the potential energies. More...
 
procedure(system_init_interaction), deferred init_interaction
 initialize a given interaction of the system More...
 
procedure(system_initial_conditions), deferred initial_conditions
 set initial conditions for a system More...
 
procedure(system_do_algorithmic_operation), deferred do_algorithmic_operation
 Execute one operation that is part of a larger algorithm. Returns true if the operation was successfully executed, false otherwise. More...
 
procedure(system_is_tolerance_reached), deferred is_tolerance_reached
 check whether a system has reached a given tolerance More...
 
procedure(system_update_quantity), deferred update_quantity
 
procedure(system_update_exposed_quantity), deferred update_exposed_quantity
 
procedure(system_restart_write_data), deferred restart_write_data
 
procedure(system_restart_read_data), deferred restart_read_data
 
procedure(system_update_kinetic_energy), deferred update_kinetic_energy
 

Private Attributes

type(barrier_t), dimension(number_barriersbarrier
 

Member Function/Subroutine Documentation

◆ execute_algorithm()

procedure system_oct_m::system_t::execute_algorithm
private

perform one or more algorithmic operations

The following subroutine takes a system and performs as many algorithmic operations as possible on the system until a barrier is reached. There are two types of barriers:

  • explicit barriers, implemented using the barrier_t type
  • the interaction update

The interaction update is always considered a barrier, even if the update was successful. This is to allow other system to also update their interactions before this system moves on to the next operations.

Definition at line 185 of file system.F90.

◆ reset_clocks()

procedure system_oct_m::system_t::reset_clocks
private

Definition at line 186 of file system.F90.

◆ update_exposed_quantities()

procedure system_oct_m::system_t::update_exposed_quantities
private

update all exposed quantities of the system.

this function is called as partner from the interaction

Definition at line 187 of file system.F90.

◆ init_algorithm()

procedure system_oct_m::system_t::init_algorithm
private

Definition at line 188 of file system.F90.

◆ algorithm_finished()

procedure system_oct_m::system_t::algorithm_finished
private

Definition at line 189 of file system.F90.

◆ init_clocks()

procedure system_oct_m::system_t::init_clocks
private

Definition at line 190 of file system.F90.

◆ init_all_interactions()

procedure system_oct_m::system_t::init_all_interactions
private

Definition at line 191 of file system.F90.

◆ init_parallelization()

procedure system_oct_m::system_t::init_parallelization
private

Basic functionality: copy the MPI group. This function needs to be implemented by extended types that need more initialization for their parallelization.

Definition at line 192 of file system.F90.

◆ update_interactions()

procedure system_oct_m::system_t::update_interactions
private

Definition at line 193 of file system.F90.

◆ update_interactions_start()

procedure system_oct_m::system_t::update_interactions_start
private

Definition at line 194 of file system.F90.

◆ update_interactions_finish()

procedure system_oct_m::system_t::update_interactions_finish
private

Definition at line 195 of file system.F90.

◆ propagation_start()

procedure system_oct_m::system_t::propagation_start
private

Definition at line 196 of file system.F90.

◆ propagation_finish()

procedure system_oct_m::system_t::propagation_finish
private

Definition at line 197 of file system.F90.

◆ iteration_info()

procedure system_oct_m::system_t::iteration_info
private

Definition at line 198 of file system.F90.

◆ restart_write()

procedure system_oct_m::system_t::restart_write
private

Definition at line 199 of file system.F90.

◆ restart_read()

procedure system_oct_m::system_t::restart_read
private

Definition at line 200 of file system.F90.

◆ output_start()

procedure system_oct_m::system_t::output_start
private

Definition at line 201 of file system.F90.

◆ output_write()

procedure system_oct_m::system_t::output_write
private

Definition at line 202 of file system.F90.

◆ output_finish()

procedure system_oct_m::system_t::output_finish
private

Definition at line 203 of file system.F90.

◆ process_is_slave()

procedure system_oct_m::system_t::process_is_slave
private

Definition at line 204 of file system.F90.

◆ start_barrier()

procedure system_oct_m::system_t::start_barrier
private

Definition at line 205 of file system.F90.

◆ end_barrier()

procedure system_oct_m::system_t::end_barrier
private

Definition at line 206 of file system.F90.

◆ arrived_at_barrier()

procedure system_oct_m::system_t::arrived_at_barrier
private

Definition at line 207 of file system.F90.

◆ arrived_at_any_barrier()

procedure system_oct_m::system_t::arrived_at_any_barrier
private

Definition at line 208 of file system.F90.

◆ update_potential_energy()

procedure system_oct_m::system_t::update_potential_energy
private

Calculate the potential energy of the system. The potential energy is defined as the sum of all energies arising from interactions with external systems. (Note that multisystems override this function)

Definition at line 209 of file system.F90.

◆ update_internal_energy()

procedure system_oct_m::system_t::update_internal_energy
private

Calculate the internal energy of the system. The internal energy is defined as the sum of all energies arising from intra-interactions and the entropy terms (if available). (Note that multisystems override this function)

Definition at line 210 of file system.F90.

◆ update_total_energy()

procedure system_oct_m::system_t::update_total_energy
private

Calculate the total energy of the system. The total energy is defined as the sum of the kinetic, the internal and the potential energies.

Definition at line 211 of file system.F90.

◆ init_interaction()

procedure(system_init_interaction), deferred system_oct_m::system_t::init_interaction
private

initialize a given interaction of the system

Definition at line 212 of file system.F90.

◆ initial_conditions()

procedure(system_initial_conditions), deferred system_oct_m::system_t::initial_conditions
private

set initial conditions for a system

Definition at line 213 of file system.F90.

◆ do_algorithmic_operation()

procedure(system_do_algorithmic_operation), deferred system_oct_m::system_t::do_algorithmic_operation
private

Execute one operation that is part of a larger algorithm. Returns true if the operation was successfully executed, false otherwise.

On output, the routine should also provide a list quantities that were updated. If no quantitiy was updated, then the corresponding array should be left unallocated.

Definition at line 214 of file system.F90.

◆ is_tolerance_reached()

procedure(system_is_tolerance_reached), deferred system_oct_m::system_t::is_tolerance_reached
private

check whether a system has reached a given tolerance

Definition at line 215 of file system.F90.

◆ update_quantity()

procedure(system_update_quantity), deferred system_oct_m::system_t::update_quantity
private

Definition at line 216 of file system.F90.

◆ update_exposed_quantity()

procedure(system_update_exposed_quantity), deferred system_oct_m::system_t::update_exposed_quantity
private

Definition at line 217 of file system.F90.

◆ restart_write_data()

procedure(system_restart_write_data), deferred system_oct_m::system_t::restart_write_data
private

Definition at line 218 of file system.F90.

◆ restart_read_data()

procedure(system_restart_read_data), deferred system_oct_m::system_t::restart_read_data
private

Definition at line 219 of file system.F90.

◆ update_kinetic_energy()

procedure(system_update_kinetic_energy), deferred system_oct_m::system_t::update_kinetic_energy
private

Definition at line 220 of file system.F90.

Member Data Documentation

◆ algo

class(algorithm_t), pointer, public system_oct_m::system_t::algo => null()

Definition at line 166 of file system.F90.

◆ accumulated_loop_ticks

integer, public system_oct_m::system_t::accumulated_loop_ticks

Definition at line 168 of file system.F90.

◆ interaction_timing

integer, public system_oct_m::system_t::interaction_timing

parameter to determine if interactions should use the quantities at the exact time or if retardation is allowed

Definition at line 170 of file system.F90.

◆ supported_interactions

type(integer_list_t), public system_oct_m::system_t::supported_interactions

Definition at line 173 of file system.F90.

◆ interactions

type(interaction_list_t), public system_oct_m::system_t::interactions

List with all the interactions of this system.

Definition at line 174 of file system.F90.

◆ grp

type(mpi_grp_t), public system_oct_m::system_t::grp

mpi group for this system

Definition at line 176 of file system.F90.

◆ barrier

type(barrier_t), dimension(number_barriers) system_oct_m::system_t::barrier
private

Definition at line 178 of file system.F90.

◆ kinetic_energy

real(8), public system_oct_m::system_t::kinetic_energy

Energy not from interactions, like the kinetic energy.

Definition at line 179 of file system.F90.

◆ potential_energy

real(8), public system_oct_m::system_t::potential_energy

Energy from the interactions with external systems.

Definition at line 180 of file system.F90.

◆ internal_energy

real(8), public system_oct_m::system_t::internal_energy

Energy from the interactions with itself and for containers the kinetic energy of its constituents.

Definition at line 181 of file system.F90.

◆ total_energy

real(8), public system_oct_m::system_t::total_energy

Sum of internal, external, and self energy.

Definition at line 182 of file system.F90.


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