~fluidity-core/fluidity/sea-ice-branch

« back to all changes in this revision

Viewing changes to tests/flux_bc/flux_bc_3d.flml

  • Committer: Simon Mouradian
  • Date: 2012-10-19 10:35:59 UTC
  • mfrom: (3520.32.371 fluidity)
  • Revision ID: simon.mouradian06@imperial.ac.uk-20121019103559-y36qa47phc69q8sc
mergeĀ fromĀ trunk

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">flux_bc_3d</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">3</integer_value>
 
12
    </dimension>
 
13
    <mesh name="CoordinateMesh">
 
14
      <from_file file_name="flux_bc_3d">
 
15
        <format name="triangle"/>
 
16
        <stat>
 
17
          <include_in_stat/>
 
18
        </stat>
 
19
      </from_file>
 
20
    </mesh>
 
21
    <mesh name="VelocityMesh">
 
22
      <from_mesh>
 
23
        <mesh name="CoordinateMesh"/>
 
24
        <mesh_shape>
 
25
          <polynomial_degree>
 
26
            <integer_value rank="0">1</integer_value>
 
27
          </polynomial_degree>
 
28
        </mesh_shape>
 
29
        <mesh_continuity>
 
30
          <string_value>discontinuous</string_value>
 
31
        </mesh_continuity>
 
32
        <stat>
 
33
          <exclude_from_stat/>
 
34
        </stat>
 
35
      </from_mesh>
 
36
    </mesh>
 
37
    <mesh name="PressureMesh">
 
38
      <from_mesh>
 
39
        <mesh name="CoordinateMesh"/>
 
40
        <mesh_shape>
 
41
          <polynomial_degree>
 
42
            <integer_value rank="0">2</integer_value>
 
43
          </polynomial_degree>
 
44
        </mesh_shape>
 
45
        <stat>
 
46
          <exclude_from_stat/>
 
47
        </stat>
 
48
      </from_mesh>
 
49
    </mesh>
 
50
    <quadrature>
 
51
      <degree>
 
52
        <integer_value rank="0">4</integer_value>
 
53
      </degree>
 
54
    </quadrature>
 
55
  </geometry>
 
56
  <io>
 
57
    <dump_format>
 
58
      <string_value>vtk</string_value>
 
59
    </dump_format>
 
60
    <dump_period>
 
61
      <constant>
 
62
        <real_value rank="0">1.0</real_value>
 
63
      </constant>
 
64
    </dump_period>
 
65
    <output_mesh name="VelocityMesh"/>
 
66
    <stat>
 
67
      <output_at_start/>
 
68
    </stat>
 
69
  </io>
 
70
  <timestepping>
 
71
    <current_time>
 
72
      <real_value rank="0">0.0</real_value>
 
73
    </current_time>
 
74
    <timestep>
 
75
      <real_value rank="0">0.1</real_value>
 
76
    </timestep>
 
77
    <finish_time>
 
78
      <real_value rank="0">1.0</real_value>
 
79
    </finish_time>
 
80
    <nonlinear_iterations>
 
81
      <integer_value rank="0">2</integer_value>
 
82
      <tolerance>
 
83
        <real_value rank="0">1.0e-12</real_value>
 
84
        <infinity_norm/>
 
85
      </tolerance>
 
86
    </nonlinear_iterations>
 
87
  </timestepping>
 
88
  <physical_parameters>
 
89
    <gravity>
 
90
      <magnitude>
 
91
        <real_value rank="0">9.8</real_value>
 
92
      </magnitude>
 
93
      <vector_field name="GravityDirection" rank="1">
 
94
        <prescribed>
 
95
          <mesh name="CoordinateMesh"/>
 
96
          <value name="WholeMesh">
 
97
            <constant>
 
98
              <real_value shape="3" dim1="dim" rank="1">0.0 -1.0 0.0</real_value>
 
99
            </constant>
 
100
          </value>
 
101
          <output/>
 
102
          <stat>
 
103
            <include_in_stat/>
 
104
          </stat>
 
105
          <detectors>
 
106
            <exclude_from_detectors/>
 
107
          </detectors>
 
108
        </prescribed>
 
109
      </vector_field>
 
110
    </gravity>
 
111
  </physical_parameters>
 
112
  <material_phase name="Tephra">
 
113
    <equation_of_state>
 
114
      <fluids>
 
115
        <linear>
 
116
          <reference_density>
 
117
            <real_value rank="0">2340.0</real_value>
 
118
          </reference_density>
 
119
        </linear>
 
120
      </fluids>
 
121
    </equation_of_state>
 
122
    <scalar_field name="Pressure" rank="0">
 
123
      <prognostic>
 
124
        <mesh name="PressureMesh"/>
 
125
        <spatial_discretisation>
 
126
          <continuous_galerkin>
 
127
            <remove_stabilisation_term/>
 
128
          </continuous_galerkin>
 
129
        </spatial_discretisation>
 
130
        <reference_node>
 
131
          <integer_value rank="0">1</integer_value>
 
132
        </reference_node>
 
133
        <scheme>
 
134
          <poisson_pressure_solution>
 
135
            <string_value lines="1">never</string_value>
 
136
          </poisson_pressure_solution>
 
137
          <use_projection_method/>
 
138
        </scheme>
 
139
        <solver>
 
140
          <iterative_method name="cg"/>
 
141
          <preconditioner name="sor"/>
 
142
          <relative_error>
 
143
            <real_value rank="0">1.0e-7</real_value>
 
144
          </relative_error>
 
145
          <max_iterations>
 
146
            <integer_value rank="0">1000</integer_value>
 
147
          </max_iterations>
 
148
          <never_ignore_solver_failures/>
 
149
          <diagnostics>
 
150
            <monitors/>
 
151
          </diagnostics>
 
152
        </solver>
 
153
        <output/>
 
154
        <stat/>
 
155
        <convergence>
 
156
          <include_in_convergence/>
 
157
        </convergence>
 
158
        <detectors>
 
159
          <exclude_from_detectors/>
 
160
        </detectors>
 
161
        <steady_state>
 
162
          <include_in_steady_state/>
 
163
        </steady_state>
 
164
        <no_interpolation/>
 
165
      </prognostic>
 
166
    </scalar_field>
 
167
    <scalar_field name="Density" rank="0">
 
168
      <diagnostic>
 
169
        <algorithm name="Internal" material_phase_support="multiple"/>
 
170
        <mesh name="CoordinateMesh"/>
 
171
        <output/>
 
172
        <stat/>
 
173
        <convergence>
 
174
          <include_in_convergence/>
 
175
        </convergence>
 
176
        <detectors>
 
177
          <include_in_detectors/>
 
178
        </detectors>
 
179
        <steady_state>
 
180
          <include_in_steady_state/>
 
181
        </steady_state>
 
182
      </diagnostic>
 
183
    </scalar_field>
 
184
    <vector_field name="Velocity" rank="1">
 
185
      <prognostic>
 
186
        <mesh name="VelocityMesh"/>
 
187
        <equation name="LinearMomentum"/>
 
188
        <spatial_discretisation>
 
189
          <discontinuous_galerkin>
 
190
            <viscosity_scheme>
 
191
              <bassi_rebay/>
 
192
            </viscosity_scheme>
 
193
            <advection_scheme>
 
194
              <upwind/>
 
195
              <integrate_advection_by_parts>
 
196
                <twice/>
 
197
              </integrate_advection_by_parts>
 
198
            </advection_scheme>
 
199
          </discontinuous_galerkin>
 
200
          <conservative_advection>
 
201
            <real_value rank="0">0.0</real_value>
 
202
          </conservative_advection>
 
203
        </spatial_discretisation>
 
204
        <temporal_discretisation>
 
205
          <theta>
 
206
            <real_value rank="0">1.0</real_value>
 
207
          </theta>
 
208
          <relaxation>
 
209
            <real_value rank="0">0.5</real_value>
 
210
          </relaxation>
 
211
        </temporal_discretisation>
 
212
        <solver>
 
213
          <iterative_method name="gmres">
 
214
            <restart>
 
215
              <integer_value rank="0">30</integer_value>
 
216
            </restart>
 
217
          </iterative_method>
 
218
          <preconditioner name="sor"/>
 
219
          <relative_error>
 
220
            <real_value rank="0">1.0e-7</real_value>
 
221
          </relative_error>
 
222
          <max_iterations>
 
223
            <integer_value rank="0">1000</integer_value>
 
224
          </max_iterations>
 
225
          <never_ignore_solver_failures/>
 
226
          <diagnostics>
 
227
            <monitors/>
 
228
          </diagnostics>
 
229
        </solver>
 
230
        <initial_condition name="WholeMesh">
 
231
          <constant>
 
232
            <real_value shape="3" dim1="dim" rank="1">0.0 0.0 0.0</real_value>
 
233
          </constant>
 
234
        </initial_condition>
 
235
        <boundary_conditions name="Top">
 
236
          <surface_ids>
 
237
            <integer_value shape="1" rank="1">444</integer_value>
 
238
          </surface_ids>
 
239
          <type name="dirichlet">
 
240
            <apply_weakly/>
 
241
            <align_bc_with_cartesian>
 
242
              <y_component>
 
243
                <constant>
 
244
                  <real_value rank="0">0</real_value>
 
245
                </constant>
 
246
              </y_component>
 
247
            </align_bc_with_cartesian>
 
248
          </type>
 
249
        </boundary_conditions>
 
250
        <boundary_conditions name="Sides_X">
 
251
          <surface_ids>
 
252
            <integer_value shape="1" rank="1">777</integer_value>
 
253
          </surface_ids>
 
254
          <type name="dirichlet">
 
255
            <apply_weakly/>
 
256
            <align_bc_with_cartesian>
 
257
              <x_component>
 
258
                <constant>
 
259
                  <real_value rank="0">0.0</real_value>
 
260
                </constant>
 
261
              </x_component>
 
262
            </align_bc_with_cartesian>
 
263
          </type>
 
264
        </boundary_conditions>
 
265
        <boundary_conditions name="Sides_Z">
 
266
          <surface_ids>
 
267
            <integer_value shape="1" rank="1">666</integer_value>
 
268
          </surface_ids>
 
269
          <type name="dirichlet">
 
270
            <apply_weakly/>
 
271
            <align_bc_with_cartesian>
 
272
              <z_component>
 
273
                <constant>
 
274
                  <real_value rank="0">0.0</real_value>
 
275
                </constant>
 
276
              </z_component>
 
277
            </align_bc_with_cartesian>
 
278
          </type>
 
279
        </boundary_conditions>
 
280
        <boundary_conditions name="Bottom">
 
281
          <surface_ids>
 
282
            <integer_value shape="1" rank="1">333</integer_value>
 
283
          </surface_ids>
 
284
          <type name="dirichlet">
 
285
            <apply_weakly/>
 
286
            <align_bc_with_cartesian>
 
287
              <y_component>
 
288
                <constant>
 
289
                  <real_value rank="0">0.0</real_value>
 
290
                </constant>
 
291
              </y_component>
 
292
            </align_bc_with_cartesian>
 
293
          </type>
 
294
        </boundary_conditions>
 
295
        <tensor_field name="Viscosity" rank="2">
 
296
          <prescribed>
 
297
            <value name="WholeMesh">
 
298
              <isotropic>
 
299
                <constant>
 
300
                  <real_value rank="0">0.001</real_value>
 
301
                </constant>
 
302
              </isotropic>
 
303
            </value>
 
304
            <output/>
 
305
          </prescribed>
 
306
        </tensor_field>
 
307
        <output/>
 
308
        <stat>
 
309
          <include_in_stat/>
 
310
          <previous_time_step>
 
311
            <exclude_from_stat/>
 
312
          </previous_time_step>
 
313
          <nonlinear_field>
 
314
            <exclude_from_stat/>
 
315
          </nonlinear_field>
 
316
        </stat>
 
317
        <convergence>
 
318
          <include_in_convergence/>
 
319
        </convergence>
 
320
        <detectors>
 
321
          <include_in_detectors/>
 
322
        </detectors>
 
323
        <steady_state>
 
324
          <include_in_steady_state/>
 
325
        </steady_state>
 
326
        <consistent_interpolation/>
 
327
      </prognostic>
 
328
    </vector_field>
 
329
    <scalar_field name="PhaseVolumeFraction" rank="0">
 
330
      <prognostic>
 
331
        <mesh name="CoordinateMesh"/>
 
332
        <equation name="AdvectionDiffusion"/>
 
333
        <spatial_discretisation>
 
334
          <control_volumes>
 
335
            <face_value name="FiniteElement">
 
336
              <limit_face_value>
 
337
                <limiter name="Sweby"/>
 
338
              </limit_face_value>
 
339
            </face_value>
 
340
            <diffusion_scheme name="BassiRebay"/>
 
341
          </control_volumes>
 
342
          <conservative_advection>
 
343
            <real_value rank="0">1.0</real_value>
 
344
          </conservative_advection>
 
345
        </spatial_discretisation>
 
346
        <temporal_discretisation>
 
347
          <theta>
 
348
            <real_value rank="0">1.0</real_value>
 
349
          </theta>
 
350
        </temporal_discretisation>
 
351
        <solver>
 
352
          <iterative_method name="gmres">
 
353
            <restart>
 
354
              <integer_value rank="0">30</integer_value>
 
355
            </restart>
 
356
          </iterative_method>
 
357
          <preconditioner name="sor"/>
 
358
          <relative_error>
 
359
            <real_value rank="0">1.0e-7</real_value>
 
360
          </relative_error>
 
361
          <max_iterations>
 
362
            <integer_value rank="0">1000</integer_value>
 
363
          </max_iterations>
 
364
          <never_ignore_solver_failures/>
 
365
          <diagnostics>
 
366
            <monitors/>
 
367
          </diagnostics>
 
368
        </solver>
 
369
        <initial_condition name="WholeMesh">
 
370
          <constant>
 
371
            <real_value rank="0">0.0</real_value>
 
372
          </constant>
 
373
        </initial_condition>
 
374
        <boundary_conditions name="Top">
 
375
          <surface_ids>
 
376
            <integer_value shape="1" rank="1">444</integer_value>
 
377
          </surface_ids>
 
378
          <type name="flux">
 
379
            <constant>
 
380
              <real_value rank="0">0.5</real_value>
 
381
            </constant>
 
382
          </type>
 
383
        </boundary_conditions>
 
384
        <boundary_conditions name="Others">
 
385
          <surface_ids>
 
386
            <integer_value shape="3" rank="1">333 666 777</integer_value>
 
387
          </surface_ids>
 
388
          <type name="zero_flux"/>
 
389
        </boundary_conditions>
 
390
        <output/>
 
391
        <stat/>
 
392
        <convergence>
 
393
          <include_in_convergence/>
 
394
        </convergence>
 
395
        <detectors>
 
396
          <include_in_detectors/>
 
397
        </detectors>
 
398
        <steady_state>
 
399
          <include_in_steady_state/>
 
400
        </steady_state>
 
401
        <consistent_interpolation/>
 
402
      </prognostic>
 
403
    </scalar_field>
 
404
  </material_phase>
 
405
</fluidity_options>