|
| 1 | +<?xml version='1.0' encoding='utf-8'?> |
| 2 | +<fluidity_options> |
| 3 | + <simulation_name> |
| 4 | + <string_value lines="1">io_projection_full</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="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 | + <mesh_continuity> |
| 25 | + <string_value>discontinuous</string_value> |
| 26 | + </mesh_continuity> |
| 27 | + <stat> |
| 28 | + <exclude_from_stat/> |
| 29 | + </stat> |
| 30 | + </from_mesh> |
| 31 | + </mesh> |
| 32 | + <quadrature> |
| 33 | + <degree> |
| 34 | + <integer_value rank="0">5</integer_value> |
| 35 | + </degree> |
| 36 | + </quadrature> |
| 37 | + </geometry> |
| 38 | + <io> |
| 39 | + <dump_format> |
| 40 | + <string_value>vtk</string_value> |
| 41 | + </dump_format> |
| 42 | + <dump_period> |
| 43 | + <constant> |
| 44 | + <real_value rank="0">0</real_value> |
| 45 | + </constant> |
| 46 | + </dump_period> |
| 47 | + <disable_dump_at_start/> |
| 48 | + <output_mesh name="CoordinateMesh"/> |
| 49 | + <project> |
| 50 | + <full_projection> |
| 51 | + <solver> |
| 52 | + <iterative_method name="cg"/> |
| 53 | + <preconditioner name="sor"/> |
| 54 | + <relative_error> |
| 55 | + <real_value rank="0">1.0e-7</real_value> |
| 56 | + </relative_error> |
| 57 | + <max_iterations> |
| 58 | + <integer_value rank="0">1000</integer_value> |
| 59 | + </max_iterations> |
| 60 | + <never_ignore_solver_failures/> |
| 61 | + <diagnostics> |
| 62 | + <monitors/> |
| 63 | + </diagnostics> |
| 64 | + </solver> |
| 65 | + </full_projection> |
| 66 | + </project> |
| 67 | + <stat/> |
| 68 | + </io> |
| 69 | + <timestepping> |
| 70 | + <current_time> |
| 71 | + <real_value rank="0">0.0</real_value> |
| 72 | + </current_time> |
| 73 | + <timestep> |
| 74 | + <real_value rank="0">1.0</real_value> |
| 75 | + </timestep> |
| 76 | + <finish_time> |
| 77 | + <real_value rank="0">1.0</real_value> |
| 78 | + </finish_time> |
| 79 | + </timestepping> |
| 80 | + <material_phase name="Fluid"> |
| 81 | + <vector_field name="Velocity" rank="1"> |
| 82 | + <prescribed> |
| 83 | + <mesh name="VelocityMesh"/> |
| 84 | + <value name="WholeMesh"> |
| 85 | + <python> |
| 86 | + <string_value lines="20" type="code" language="python">def val(X,t): |
| 87 | + if 'n' in persistent: |
| 88 | + n=persistent['n'] |
| 89 | + else: |
| 90 | + n=0 |
| 91 | + |
| 92 | + persistent['n'] = n+1 |
| 93 | + return (n%2,(n+1)%2)</string_value> |
| 94 | + </python> |
| 95 | + </value> |
| 96 | + <output/> |
| 97 | + <stat> |
| 98 | + <include_in_stat/> |
| 99 | + </stat> |
| 100 | + <detectors> |
| 101 | + <exclude_from_detectors/> |
| 102 | + </detectors> |
| 103 | + </prescribed> |
| 104 | + </vector_field> |
| 105 | + <scalar_field name="Scalar" rank="0"> |
| 106 | + <prescribed> |
| 107 | + <mesh name="VelocityMesh"/> |
| 108 | + <value name="WholeMesh"> |
| 109 | + <python> |
| 110 | + <string_value lines="20" type="code" language="python">def val(X,t): |
| 111 | + if 'n' in persistent: |
| 112 | + n=persistent['n'] |
| 113 | + else: |
| 114 | + n=0 |
| 115 | + |
| 116 | + persistent['n'] = n+1 |
| 117 | + return n%2</string_value> |
| 118 | + </python> |
| 119 | + </value> |
| 120 | + <output/> |
| 121 | + <stat/> |
| 122 | + <detectors> |
| 123 | + <exclude_from_detectors/> |
| 124 | + </detectors> |
| 125 | + </prescribed> |
| 126 | + </scalar_field> |
| 127 | + <vector_field name="Tensor" rank="1"> |
| 128 | + <prescribed> |
| 129 | + <mesh name="VelocityMesh"/> |
| 130 | + <value name="WholeMesh"> |
| 131 | + <python> |
| 132 | + <string_value lines="20" type="code" language="python">def val(X,t): |
| 133 | + if 'n' in persistent: |
| 134 | + n=persistent['n'] |
| 135 | + else: |
| 136 | + n=0 |
| 137 | + |
| 138 | + persistent['n'] = n+1 |
| 139 | + return [n%2,n%2]</string_value> |
| 140 | + </python> |
| 141 | + </value> |
| 142 | + <output/> |
| 143 | + <stat> |
| 144 | + <include_in_stat/> |
| 145 | + </stat> |
| 146 | + <detectors> |
| 147 | + <exclude_from_detectors/> |
| 148 | + </detectors> |
| 149 | + </prescribed> |
| 150 | + </vector_field> |
| 151 | + </material_phase> |
| 152 | +</fluidity_options> |
0 commit comments