OGS
moving_source_term.prj
<OpenGeoSysProject>
  <meshes>
    <mesh>mesh_1_line_100.vtu</mesh>
    <mesh>line_1_entire_line.vtu</mesh>
    <mesh>line_1_left.vtu</mesh>
    <mesh>line_1_right.vtu</mesh>
  </meshes>
  <processes>
    <process>
      <name>HeatConduction</name>
      <type>HEAT_CONDUCTION</type>
      <integration_order>2</integration_order>
      <process_variables>
        <process_variable>temperature</process_variable>
      </process_variables>
      <secondary_variables>
        <secondary_variable internal_name="heat_flux" output_name="heat_flux" />
      </secondary_variables>
    </process>
  </processes>
  <time_loop>
    <processes>
      <process ref="HeatConduction">
        <nonlinear_solver>basic_picard</nonlinear_solver>
        <convergence_criterion>
          <type>DeltaX</type>
          <norm_type>NORM2</norm_type>
          <abstol>1.e-6</abstol>
        </convergence_criterion>
        <time_discretization>
          <type>BackwardEuler</type>
        </time_discretization>
        <time_stepping>
          <type>FixedTimeStepping</type>
          <t_initial>0.0</t_initial>
          <t_end>60</t_end>
          <timesteps>
            <pair>
              <repeat>1</repeat>
              <delta_t>.5</delta_t>
            </pair>
          </timesteps>
        </time_stepping>
      </process>
    </processes>
    <output>
      <type>VTK</type>
      <prefix>moving_source_term</prefix>
      <suffix>t{:time}</suffix>
      <timesteps>
        <pair>
          <repeat>10000</repeat>
          <each_steps>1</each_steps>
        </pair>
      </timesteps>
      <variables>
        <variable>temperature</variable>
        <variable>heat_flux</variable>
      </variables>
    </output>
  </time_loop>
  <media>
    <medium id="0">
      <phases />
      <properties>
        <property>
          <name>density</name>
          <type>Constant</type>
          <value>1</value>
        </property>
        <property>
          <name>specific_heat_capacity</name>
          <type>Constant</type>
          <value>1</value>
        </property>
        <property>
          <name>thermal_conductivity</name>
          <type>Constant</type>
          <value>.0001</value>
        </property>
      </properties>
    </medium>
  </media>
  <parameters>
    <parameter>
      <name>T0</name>
      <type>Constant</type>
      <value>0</value>
    </parameter>
    <parameter>
      <name>HeatSource</name>
      <type>Function</type>
      <expression>exp(-((x - t/60)^2)/0.001)</expression>
    </parameter>
  </parameters>
  <process_variables>
    <process_variable>
      <name>temperature</name>
      <components>1</components>
      <order>1</order>
      <initial_condition>T0</initial_condition>
      <boundary_conditions>
        <boundary_condition>
          <mesh>line_1_left</mesh>
          <type>Dirichlet</type>
          <parameter>T0</parameter>
        </boundary_condition>
        <boundary_condition>
          <mesh>line_1_right</mesh>
          <type>Dirichlet</type>
          <parameter>T0</parameter>
        </boundary_condition>
      </boundary_conditions>
      <source_terms>
        <source_term>
          <mesh>line_1_entire_line</mesh>
          <type>Line</type>
          <parameter>HeatSource</parameter>
        </source_term>
      </source_terms>
    </process_variable>
  </process_variables>
  <nonlinear_solvers>
    <nonlinear_solver>
      <name>basic_picard</name>
      <type>Picard</type>
      <max_iter>10</max_iter>
      <linear_solver>general_linear_solver</linear_solver>
    </nonlinear_solver>
  </nonlinear_solvers>
  <linear_solvers>
    <linear_solver>
      <name>general_linear_solver</name>
      <lis>-i cg -p jacobi -tol 1e-16 -maxiter 10000</lis>
      <eigen>
        <solver_type>CG</solver_type>
        <precon_type>DIAGONAL</precon_type>
        <max_iteration_step>10000</max_iteration_step>
        <error_tolerance>1e-16</error_tolerance>
      </eigen>
      <petsc>
        <prefix>gw</prefix>
        <parameters>-gw_ksp_type cg -gw_pc_type bjacobi -gw_ksp_rtol 1e-16 -gw_ksp_max_it 10000</parameters>
      </petsc>
    </linear_solver>
  </linear_solvers>
  <test_definition>
    <vtkdiff>
      <regex>moving_source_term_t_[0-9]*.000000.vtu</regex>
      <field>temperature</field>
      <absolute_tolerance>1e-14</absolute_tolerance>
      <relative_tolerance>0</relative_tolerance>
    </vtkdiff>
  </test_definition>
</OpenGeoSysProject>