translate some of the examples

This commit is contained in:
Magnus Ulimoen 2020-09-04 00:05:25 +02:00
parent 1648c72904
commit c954484503
3 changed files with 45 additions and 42 deletions

View File

@ -7,21 +7,21 @@
} }
}, },
"grid0": { "grid0": {
"x": "linspace:-5:5:50", "x": { "linspace": { "start": -5, "end": 5, "steps": 50 } },
"y": "linspace:0:5:25", "y": { "linspace": { "start": 0, "end": 5, "steps": 25 } },
"boundary_conditions": { "boundary_conditions": {
"south": "interpolate:9:grid1", "south": {"interpolate": { "neighbour": "grid1", "operator": "9"}},
"north": "vortex", "north": "vortex",
"east": "vortex", "east": "vortex",
"west": "vortex" "west": "vortex"
} }
}, },
"grid1": { "grid1": {
"x": "linspace:-5:5:99", "x": { "linspace": { "start": -5, "end": 5, "steps": 99 } },
"y": "linspace:-5:0:50", "y": { "linspace": { "start": -5, "end": 0, "steps": 50 } },
"boundary_conditions": { "boundary_conditions": {
"south": "vortex", "south": "vortex",
"north": "interpolate:9:grid0", "north": {"interpolate": { "neighbour": "grid0", "operator": "9"}},
"east": "vortex", "east": "vortex",
"west": "vortex" "west": "vortex"
} }
@ -29,10 +29,12 @@
}, },
"integration_time": 2.0, "integration_time": 2.0,
"vortex": { "vortex": {
"vortices": [{
"x0": -1.0, "x0": -1.0,
"y0": 0.0, "y0": 0.0,
"mach": 0.5,
"rstar": 0.5, "rstar": 0.5,
"eps": 1.0 "eps": 1.0
}],
"mach": 0.5
} }
} }

View File

@ -7,52 +7,54 @@
} }
}, },
"grid0": { "grid0": {
"x": "linspace:-5:0:50", "x": { "linspace": { "start": -5, "end": 0, "steps": 50 } },
"y": "linspace:0:5:50", "y": { "linspace" : { "start":0, "end" :5, "steps" :50 } },
"boundary_conditions": { "boundary_conditions": {
"south": "grid1", "south": { "neighbour": "grid1" },
"north": "grid1", "north": { "neighbour": "grid1" },
"east": "grid3", "east": { "neighbour": "grid3" },
"west": "grid3" "west": { "neighbour": "grid3" }
} }
}, },
"grid1": { "grid1": {
"x": "linspace:-5:0:50", "x": { "linspace": { "start": -5, "end": 0, "steps": 50 } },
"y": "linspace:-5:0:50", "y": { "linspace" : { "start":-5, "end": 0, "steps" :50 } },
"boundary_conditions": { "boundary_conditions": {
"south": "grid0", "south": {"neighbour": "grid0"},
"north": "grid0", "north": {"neighbour": "grid0"},
"east": "grid2", "east": {"neighbour": "grid2"},
"west": "grid2" "west": {"neighbour": "grid2"}
} }
}, },
"grid2": { "grid2": {
"x": "linspace:0:5:50", "x": {"linspace":{"start":0, "end":5, "steps":50}},
"y": "linspace:-5:0:50", "y": {"linspace":{"start":-5, "end":0, "steps":50}},
"boundary_conditions": { "boundary_conditions": {
"south": "grid3", "south": {"neighbour": "grid3"},
"north": "grid3", "north": {"neighbour": "grid3"},
"east": "grid1", "east": {"neighbour": "grid1"},
"west": "grid1" "west": {"neighbour": "grid1"}
} }
}, },
"grid3": { "grid3": {
"x": "linspace:0:5:50", "x": {"linspace":{"start":0, "end":5, "steps":50}},
"y": "linspace:0:5:50", "y": {"linspace":{"start":0, "end":5, "steps":50}},
"boundary_conditions": { "boundary_conditions": {
"south": "grid2", "south": {"neighbour": "grid2"},
"north": "grid2", "north": {"neighbour": "grid2"},
"east": "grid0", "east": {"neighbour": "grid0"},
"west": "grid0" "west": {"neighbour": "grid0"}
} }
} }
}, },
"integration_time": 2.0, "integration_time": 2.0,
"vortex": { "vortex": {
"vortices": [{
"x0": -1.0, "x0": -1.0,
"y0": 0.0, "y0": 0.0,
"mach": 0.5, "eps": 1.0,
"rstar": 0.5, "rstar": 0.5
"eps": 1.0 }],
"mach": 0.5
} }
} }

View File

@ -273,8 +273,7 @@ impl Configuration {
op, op,
integration_time: self.integration_time, integration_time: self.integration_time,
vortex: self.vortex, vortex: self.vortex,
}; }
todo!();
} }
} }