load_temporal_from_file Subroutine

private subroutine load_temporal_from_file(me, conf, thandle)

This subroutine loads the information needed to read data from a file.

Example: Read time periodic velocity signals from file 'data.dat' as inlet condition without interpolation between the velocity signals.

boundary_condition =
        {
          { label = 'inlet',
            kind = 'inlet_ubb',
            velocityX = { kind = 'combined',
                          temporal = { predefined = 'datafile',
                                        filename   = 'data.dat',
                                        intp       = 'none',
                                        periodic   = true
                                      }
                        },
            velocityY = 0.0
            velocityZ = 0.0
          }
        }

The options for interpolating the values are \li \a 'none': No interpolation is used. The signals will be chosen by: [t1,t2[ = v1, [t2,t3[ = v2, ... \li \a 'linear': A linear interpolation is done between neighboring values according to the following equation: \f[ \frac{v_{i+1}-v_{i}}{t_{i+1}-t_{i}} \cdot (t_{sim} \% t_{period} - t_{i}) + v_{i} \f]

Arguments

TypeIntentOptionalAttributesName
type(tem_from_file_temporal_type), intent(inout) :: me

temporal predefined from_file type

type(flu_State) :: conf

lua state type

integer, intent(in) :: thandle

aotus parent handle


Calls

proc~~load_temporal_from_file~~CallsGraph proc~load_temporal_from_file load_temporal_from_file interface~aot_get_val~2 aot_get_val proc~load_temporal_from_file->interface~aot_get_val~2 proc~load_datafile load_datafile proc~load_temporal_from_file->proc~load_datafile proc~aot_table_open aot_table_open proc~load_temporal_from_file->proc~aot_table_open proc~tem_abort tem_abort proc~load_temporal_from_file->proc~tem_abort proc~load_datafile->proc~tem_abort proc~tem_open tem_open proc~load_datafile->proc~tem_open interface~init~15 init proc~load_datafile->interface~init~15 interface~append~16 append proc~load_datafile->interface~append~16 mpi_abort mpi_abort proc~tem_abort->mpi_abort proc~tem_open->proc~tem_abort proc~newunit newunit proc~tem_open->proc~newunit proc~upper_to_lower upper_to_lower proc~tem_open->proc~upper_to_lower proc~init_ga2d_real init_ga2d_real interface~init~15->proc~init_ga2d_real proc~append_arrayga2d_real append_arrayga2d_real interface~append~16->proc~append_arrayga2d_real proc~append_singlega2d_real append_singlega2d_real interface~append~16->proc~append_singlega2d_real interface~expand~14 expand proc~append_arrayga2d_real->interface~expand~14 proc~append_singlega2d_real->interface~expand~14

Called by

proc~~load_temporal_from_file~~CalledByGraph proc~load_temporal_from_file load_temporal_from_file proc~tem_load_temporal tem_load_temporal proc~tem_load_temporal->proc~load_temporal_from_file proc~load_spacetime_predefined load_spacetime_predefined proc~load_spacetime_predefined->proc~tem_load_temporal proc~tem_load_spacetime_single tem_load_spacetime_single proc~tem_load_spacetime_single->proc~load_spacetime_predefined proc~tem_load_spacetime_single->proc~tem_load_spacetime_single proc~tem_load_spacetime_table tem_load_spacetime_table proc~tem_load_spacetime_table->proc~tem_load_spacetime_single interface~tem_load_spacetime tem_load_spacetime interface~tem_load_spacetime->proc~tem_load_spacetime_single

Contents


Variables

TypeVisibilityAttributesNameInitial
integer, private :: iError
integer, private :: rampHandle