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

« back to all changes in this revision

Viewing changes to tests/bed_shear_from_grad_u_CG/bed_shear_from_grad_u_CG.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">bed_shear_from_grad_u_CG</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="src/box">
 
15
        <format name="gmsh"/>
 
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
        <stat>
 
25
          <exclude_from_stat/>
 
26
        </stat>
 
27
      </from_mesh>
 
28
    </mesh>
 
29
    <quadrature>
 
30
      <degree>
 
31
        <integer_value rank="0">3</integer_value>
 
32
      </degree>
 
33
    </quadrature>
 
34
  </geometry>
 
35
  <io>
 
36
    <dump_format>
 
37
      <string_value>vtk</string_value>
 
38
    </dump_format>
 
39
    <dump_period_in_timesteps>
 
40
      <constant>
 
41
        <integer_value rank="0">1</integer_value>
 
42
      </constant>
 
43
    </dump_period_in_timesteps>
 
44
    <output_mesh name="CoordinateMesh"/>
 
45
    <stat/>
 
46
  </io>
 
47
  <timestepping>
 
48
    <current_time>
 
49
      <real_value rank="0">0</real_value>
 
50
    </current_time>
 
51
    <timestep>
 
52
      <real_value rank="0">1</real_value>
 
53
    </timestep>
 
54
    <finish_time>
 
55
      <real_value rank="0">0</real_value>
 
56
    </finish_time>
 
57
  </timestepping>
 
58
  <material_phase name="test_fluid">
 
59
    <vector_field name="Velocity" rank="1">
 
60
      <prognostic>
 
61
        <mesh name="VelocityMesh"/>
 
62
        <equation name="Boussinesq"/>
 
63
        <spatial_discretisation>
 
64
          <continuous_galerkin>
 
65
            <stabilisation>
 
66
              <no_stabilisation/>
 
67
            </stabilisation>
 
68
            <mass_terms/>
 
69
            <advection_terms/>
 
70
            <stress_terms>
 
71
              <tensor_form/>
 
72
            </stress_terms>
 
73
          </continuous_galerkin>
 
74
          <conservative_advection>
 
75
            <real_value rank="0">0</real_value>
 
76
          </conservative_advection>
 
77
        </spatial_discretisation>
 
78
        <temporal_discretisation>
 
79
          <theta>
 
80
            <real_value rank="0">0.5</real_value>
 
81
          </theta>
 
82
          <relaxation>
 
83
            <real_value rank="0">0.5</real_value>
 
84
          </relaxation>
 
85
        </temporal_discretisation>
 
86
        <solver>
 
87
          <iterative_method name="gmres">
 
88
            <restart>
 
89
              <integer_value rank="0">30</integer_value>
 
90
            </restart>
 
91
          </iterative_method>
 
92
          <preconditioner name="sor"/>
 
93
          <relative_error>
 
94
            <real_value rank="0">1E-05</real_value>
 
95
          </relative_error>
 
96
          <max_iterations>
 
97
            <integer_value rank="0">2000</integer_value>
 
98
          </max_iterations>
 
99
          <never_ignore_solver_failures/>
 
100
          <diagnostics>
 
101
            <monitors/>
 
102
          </diagnostics>
 
103
        </solver>
 
104
        <initial_condition name="WholeMesh">
 
105
          <python>
 
106
            <string_value lines="20" type="code" language="python">def val(X, t):
 
107
    return [X[1], X[0]]</string_value>
 
108
          </python>
 
109
        </initial_condition>
 
110
        <tensor_field name="Viscosity" rank="2">
 
111
          <prescribed>
 
112
            <value name="WholeMesh">
 
113
              <isotropic>
 
114
                <constant>
 
115
                  <real_value rank="0">1.0</real_value>
 
116
                </constant>
 
117
              </isotropic>
 
118
            </value>
 
119
            <output/>
 
120
          </prescribed>
 
121
        </tensor_field>
 
122
        <output/>
 
123
        <stat>
 
124
          <include_in_stat/>
 
125
          <previous_time_step>
 
126
            <exclude_from_stat/>
 
127
          </previous_time_step>
 
128
          <nonlinear_field>
 
129
            <exclude_from_stat/>
 
130
          </nonlinear_field>
 
131
        </stat>
 
132
        <convergence>
 
133
          <include_in_convergence/>
 
134
        </convergence>
 
135
        <detectors>
 
136
          <include_in_detectors/>
 
137
        </detectors>
 
138
        <steady_state>
 
139
          <include_in_steady_state/>
 
140
        </steady_state>
 
141
        <consistent_interpolation/>
 
142
      </prognostic>
 
143
    </vector_field>
 
144
    <vector_field name="BedShearStress" rank="1">
 
145
      <diagnostic>
 
146
        <algorithm name="Internal" material_phase_support="multiple"/>
 
147
        <mesh name="VelocityMesh"/>
 
148
        <density>
 
149
          <real_value rank="0">1</real_value>
 
150
        </density>
 
151
        <calculation_method>
 
152
          <velocity_gradient/>
 
153
        </calculation_method>
 
154
        <output/>
 
155
        <stat>
 
156
          <include_in_stat/>
 
157
        </stat>
 
158
        <detectors>
 
159
          <include_in_detectors/>
 
160
        </detectors>
 
161
      </diagnostic>
 
162
    </vector_field>
 
163
  </material_phase>
 
164
</fluidity_options>