~reducedmodelling/fluidity/ROM_Non-intrusive-ann

« back to all changes in this revision

Viewing changes to tests/detectors_mesh_movement_parallel/detectors.flml

  • Committer: Michael Lange
  • Date: 2011-10-12 09:22:53 UTC
  • mto: This revision was merged to the branch mainline in revision 3741.
  • Revision ID: michael.lange@imperial.ac.uk-20111012092253-bla2ig4kiy3yvvds
Making detectors with mesh movement *almost* safe in parallel:
 * Adding test case detectors_mesh_movement_parallel where fixed static detectors go across parallel boundaries
 * Added a second picker_inquire call to search_for_detectors that will search the Halo if necessary
 * Calling distribute_detectors after re-synchronising physical and parametric coordinates so that detectors found in a Halo will be send to the according proc

Note: If the the virtual detector displacement due to the moving mesh is greater than the Halo bad things happen, which will be fixed soon with a broadcast.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version='1.0' encoding='utf-8'?>
 
2
<fluidity_options>
 
3
  <simulation_name>
 
4
    <string_value lines="1">detectors</string_value>
 
5
  </simulation_name>
 
6
  <problem_type>
 
7
    <string_value lines="1">fluids</string_value>
 
8
  </problem_type>
 
9
  <geometry>
 
10
    <dimension>
 
11
      <integer_value rank="0">2</integer_value>
 
12
    </dimension>
 
13
    <mesh name="CoordinateMesh">
 
14
      <from_file file_name="square">
 
15
        <format name="triangle"/>
 
16
        <stat>
 
17
          <include_in_stat/>
 
18
        </stat>
 
19
      </from_file>
 
20
    </mesh>
 
21
    <quadrature>
 
22
      <degree>
 
23
        <integer_value rank="0">6</integer_value>
 
24
      </degree>
 
25
    </quadrature>
 
26
  </geometry>
 
27
  <io>
 
28
    <dump_format>
 
29
      <string_value>vtk</string_value>
 
30
    </dump_format>
 
31
    <dump_period>
 
32
      <constant>
 
33
        <real_value rank="0">2.0</real_value>
 
34
      </constant>
 
35
    </dump_period>
 
36
    <output_mesh name="CoordinateMesh"/>
 
37
    <stat/>
 
38
    <detectors>
 
39
      <static_detector name="D1">
 
40
        <location>
 
41
          <real_value shape="2" dim1="dim" rank="1">0.0 0.0</real_value>
 
42
        </location>
 
43
      </static_detector>
 
44
      <static_detector name="D2">
 
45
        <location>
 
46
          <real_value shape="2" dim1="dim" rank="1">0.25 0.25</real_value>
 
47
        </location>
 
48
      </static_detector>
 
49
      <binary_output/>
 
50
    </detectors>
 
51
  </io>
 
52
  <timestepping>
 
53
    <current_time>
 
54
      <real_value rank="0">0.0</real_value>
 
55
    </current_time>
 
56
    <timestep>
 
57
      <real_value rank="0">0.1</real_value>
 
58
    </timestep>
 
59
    <finish_time>
 
60
      <real_value rank="0">4.0</real_value>
 
61
    </finish_time>
 
62
  </timestepping>
 
63
  <material_phase name="Water">
 
64
    <vector_field name="Velocity" rank="1">
 
65
      <prescribed>
 
66
        <mesh name="CoordinateMesh"/>
 
67
        <value name="WholeMesh">
 
68
          <constant>
 
69
            <real_value shape="2" dim1="dim" rank="1">0.1 0.1</real_value>
 
70
          </constant>
 
71
        </value>
 
72
        <output/>
 
73
        <stat>
 
74
          <include_in_stat/>
 
75
        </stat>
 
76
        <detectors>
 
77
          <include_in_detectors/>
 
78
        </detectors>
 
79
        <consistent_interpolation/>
 
80
      </prescribed>
 
81
    </vector_field>
 
82
    <scalar_field name="Tracer" rank="0">
 
83
      <prescribed>
 
84
        <mesh name="CoordinateMesh"/>
 
85
        <value name="WholeMesh">
 
86
          <python>
 
87
            <string_value lines="20" type="python">def val(x, t):
 
88
        return x[0]</string_value>
 
89
          </python>
 
90
        </value>
 
91
        <output/>
 
92
        <stat/>
 
93
        <detectors>
 
94
          <include_in_detectors/>
 
95
        </detectors>
 
96
        <consistent_interpolation/>
 
97
        <do_not_recalculate/>
 
98
      </prescribed>
 
99
    </scalar_field>
 
100
  </material_phase>
 
101
  <mesh_adaptivity>
 
102
    <mesh_movement>
 
103
      <pseudo_lagrangian/>
 
104
      <vector_field name="GridVelocity" rank="1">
 
105
        <diagnostic>
 
106
          <algorithm name="Internal" material_phase_support="multiple"/>
 
107
          <mesh name="CoordinateMesh"/>
 
108
          <output/>
 
109
          <stat>
 
110
            <include_in_stat/>
 
111
          </stat>
 
112
          <convergence>
 
113
            <include_in_convergence/>
 
114
          </convergence>
 
115
          <detectors>
 
116
            <include_in_detectors/>
 
117
          </detectors>
 
118
          <steady_state>
 
119
            <include_in_steady_state/>
 
120
          </steady_state>
 
121
        </diagnostic>
 
122
      </vector_field>
 
123
    </mesh_movement>
 
124
  </mesh_adaptivity>
 
125
</fluidity_options>