Implements the divergence_t type.  
 | 
| type   | divergence_t | 
|   | A simulation component that computes the divergence of a vector field. Added to the field registry as div by default, bu can be controlled by the computed_field keyword.  More...
  | 
|   | 
 | 
| subroutine  | divergence_init_from_json (this, json, case) | 
|   | Constructor from json.  
  | 
|   | 
| subroutine  | divergence_init_common (this, field_names, computed_field) | 
|   | Actual constructor.  
  | 
|   | 
| subroutine  | divergence_init_from_controllers (this, case, order, preprocess_controller, compute_controller, output_controller, field_names, computed_field, filename, precision) | 
|   | Constructor from components, passing controllers.  
  | 
|   | 
| subroutine  | divergence_init_from_controllers_properties (this, case, order, preprocess_control, preprocess_value, compute_control, compute_value, output_control, output_value, field_names, computed_field, filename, precision) | 
|   | Constructor from components, passing properties to the time_based_controller` components in the base type.  
  | 
|   | 
| subroutine  | divergence_free (this) | 
|   | Destructor.  
  | 
|   | 
| subroutine  | divergence_compute (this, time) | 
|   | Compute the divergence field.  
  | 
|   | 
◆ divergence_compute()
◆ divergence_free()
◆ divergence_init_common()
- Parameters
 - 
  
    | field_names | The name of the fields to compute the divergence of.  | 
    | computed_field | The base name of the divergence field components.  | 
  
   
Definition at line 124 of file divergence_simcomp.f90.
 
 
◆ divergence_init_from_controllers()
  
  
      
        
          | subroutine divergence_simcomp::divergence_init_from_controllers  | 
          ( | 
          class(divergence_t), intent(inout)  | 
          this,  | 
         
        
           | 
           | 
          class(case_t), intent(inout), target  | 
          case,  | 
         
        
           | 
           | 
          integer  | 
          order,  | 
         
        
           | 
           | 
          type(time_based_controller_t), intent(in)  | 
          preprocess_controller,  | 
         
        
           | 
           | 
          type(time_based_controller_t), intent(in)  | 
          compute_controller,  | 
         
        
           | 
           | 
          type(time_based_controller_t), intent(in)  | 
          output_controller,  | 
         
        
           | 
           | 
          character(len=*), dimension(3)  | 
          field_names,  | 
         
        
           | 
           | 
          character(len=*)  | 
          computed_field,  | 
         
        
           | 
           | 
          character(len=*), intent(in), optional  | 
          filename,  | 
         
        
           | 
           | 
          integer, intent(in), optional  | 
          precision  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
private   | 
  
 
- Parameters
 - 
  
    | case | The simulation case object.  | 
    | order | The execution oder priority of the simcomp.  | 
    | preprocess_controller | The controller for running preprocessing.  | 
    | compute_controller | The controller for running compute.  | 
    | output_controller | The controller for producing output.  | 
    | field_names | The name of the fields to compute the divergence of.  | 
    | computed_field | The base name of the divergence field components.  | 
    | filename | The name of the file save the fields to. Optional, if not  | 
    | precision | The real precision of the output data. Optional, defaults to single precision.  | 
  
   
Definition at line 148 of file divergence_simcomp.f90.
 
 
◆ divergence_init_from_controllers_properties()
  
  
      
        
          | subroutine divergence_simcomp::divergence_init_from_controllers_properties  | 
          ( | 
          class(divergence_t), intent(inout)  | 
          this,  | 
         
        
           | 
           | 
          class(case_t), intent(inout), target  | 
          case,  | 
         
        
           | 
           | 
          integer  | 
          order,  | 
         
        
           | 
           | 
          character(len=*), intent(in)  | 
          preprocess_control,  | 
         
        
           | 
           | 
          real(kind=rp), intent(in)  | 
          preprocess_value,  | 
         
        
           | 
           | 
          character(len=*), intent(in)  | 
          compute_control,  | 
         
        
           | 
           | 
          real(kind=rp), intent(in)  | 
          compute_value,  | 
         
        
           | 
           | 
          character(len=*), intent(in)  | 
          output_control,  | 
         
        
           | 
           | 
          real(kind=rp), intent(in)  | 
          output_value,  | 
         
        
           | 
           | 
          character(len=*), dimension(3)  | 
          field_names,  | 
         
        
           | 
           | 
          character(len=*)  | 
          computed_field,  | 
         
        
           | 
           | 
          character(len=*), intent(in), optional  | 
          filename,  | 
         
        
           | 
           | 
          integer, intent(in), optional  | 
          precision  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
private   | 
  
 
- Parameters
 - 
  
    | case | The simulation case object.  | 
    | order | The execution oder priority of the simcomp.  | 
    | preprocess_controller | Control mode for preprocessing.  | 
    | preprocess_value | Value parameter for preprocessing.  | 
    | compute_controller | Control mode for computing.  | 
    | compute_value | Value parameter for computing.  | 
    | output_controller | Control mode for output.  | 
    | output_value | Value parameter for output.  | 
    | field_names | The name of the field to compute the divergence of.  | 
    | computed_field | The base name of the divergence field components.  | 
    | filename | The name of the file save the fields to. Optional, if not provided, fields are added to the main output file.  | 
    | precision | The real precision of the output data. Optional, defaults to single precision.  | 
  
   
Definition at line 190 of file divergence_simcomp.f90.
 
 
◆ divergence_init_from_json()