add and move multigrid examples
This commit is contained in:
38
multigrid/examples/interpolation.json
Normal file
38
multigrid/examples/interpolation.json
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"grids": {
|
||||
"default": {
|
||||
"operators": {
|
||||
"xi": "upwind9",
|
||||
"eta": "upwind9"
|
||||
}
|
||||
},
|
||||
"grid0": {
|
||||
"x": "linspace:-5:5:50",
|
||||
"y": "linspace:0:5:25",
|
||||
"boundary_conditions": {
|
||||
"south": "interpolate:9:grid1",
|
||||
"north": "vortex",
|
||||
"east": "vortex",
|
||||
"west": "vortex"
|
||||
}
|
||||
},
|
||||
"grid1": {
|
||||
"x": "linspace:-5:5:99",
|
||||
"y": "linspace:-5:0:50",
|
||||
"boundary_conditions": {
|
||||
"south": "vortex",
|
||||
"north": "interpolate:9:grid0",
|
||||
"east": "vortex",
|
||||
"west": "vortex"
|
||||
}
|
||||
}
|
||||
},
|
||||
"integration_time": 2.0,
|
||||
"vortex": {
|
||||
"x0": -1.0,
|
||||
"y0": 0.0,
|
||||
"mach": 0.5,
|
||||
"rstar": 0.5,
|
||||
"eps": 1.0
|
||||
}
|
||||
}
|
||||
68
multigrid/examples/mix_operators.json
Normal file
68
multigrid/examples/mix_operators.json
Normal file
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"grids": {
|
||||
"default": {
|
||||
"operators": {
|
||||
"xi": "upwind9",
|
||||
"eta": "upwind9"
|
||||
}
|
||||
},
|
||||
"grid0": {
|
||||
"x": "linspace:h2:-5:0:50",
|
||||
"y": "linspace:h2:0:5:50",
|
||||
"operators": {
|
||||
"xi": "upwind9h2",
|
||||
"eta": "upwind9h2"
|
||||
},
|
||||
"boundary_conditions": {
|
||||
"south": "interpolate:9h2:grid1",
|
||||
"north": "vortex",
|
||||
"east": "grid3",
|
||||
"west": "vortex"
|
||||
}
|
||||
},
|
||||
"grid1": {
|
||||
"x": "linspace:h2:-5:0:98",
|
||||
"y": "linspace:-5:0:100",
|
||||
"operators": {
|
||||
"xi": "upwind9h2"
|
||||
},
|
||||
"boundary_conditions": {
|
||||
"south": "vortex",
|
||||
"north": "interpolate:9h2:grid0",
|
||||
"east": "grid2",
|
||||
"west": "vortex"
|
||||
}
|
||||
},
|
||||
"grid2": {
|
||||
"x": "linspace:0:5:99",
|
||||
"y": "linspace:-5:0:100",
|
||||
"boundary_conditions": {
|
||||
"south": "vortex",
|
||||
"north": "interpolate:9:grid3",
|
||||
"east": "vortex",
|
||||
"west": "grid1"
|
||||
}
|
||||
},
|
||||
"grid3": {
|
||||
"x": "linspace:0:5:50",
|
||||
"y": "linspace:h2:0:5:50",
|
||||
"operators": {
|
||||
"eta": "upwind9h2"
|
||||
},
|
||||
"boundary_conditions": {
|
||||
"south": "interpolate:9:grid2",
|
||||
"north": "vortex",
|
||||
"east": "vortex",
|
||||
"west": "grid0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"integration_time": 2.0,
|
||||
"vortex": {
|
||||
"x0": -1.0,
|
||||
"y0": 0.0,
|
||||
"mach": 0.5,
|
||||
"rstar": 0.5,
|
||||
"eps": 1.0
|
||||
}
|
||||
}
|
||||
58
multigrid/examples/quad.json
Normal file
58
multigrid/examples/quad.json
Normal file
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"grids": {
|
||||
"default": {
|
||||
"operators": {
|
||||
"xi": "upwind9",
|
||||
"eta": "upwind9"
|
||||
}
|
||||
},
|
||||
"grid0": {
|
||||
"x": "linspace:-5:0:50",
|
||||
"y": "linspace:0:5:50",
|
||||
"boundary_conditions": {
|
||||
"south": "grid1",
|
||||
"north": "grid1",
|
||||
"east": "grid3",
|
||||
"west": "grid3"
|
||||
}
|
||||
},
|
||||
"grid1": {
|
||||
"x": "linspace:-5:0:50",
|
||||
"y": "linspace:-5:0:50",
|
||||
"boundary_conditions": {
|
||||
"south": "grid0",
|
||||
"north": "grid0",
|
||||
"east": "grid2",
|
||||
"west": "grid2"
|
||||
}
|
||||
},
|
||||
"grid2": {
|
||||
"x": "linspace:0:5:50",
|
||||
"y": "linspace:-5:0:50",
|
||||
"boundary_conditions": {
|
||||
"south": "grid3",
|
||||
"north": "grid3",
|
||||
"east": "grid1",
|
||||
"west": "grid1"
|
||||
}
|
||||
},
|
||||
"grid3": {
|
||||
"x": "linspace:0:5:50",
|
||||
"y": "linspace:0:5:50",
|
||||
"boundary_conditions": {
|
||||
"south": "grid2",
|
||||
"north": "grid2",
|
||||
"east": "grid0",
|
||||
"west": "grid0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"integration_time": 2.0,
|
||||
"vortex": {
|
||||
"x0": -1.0,
|
||||
"y0": 0.0,
|
||||
"mach": 0.5,
|
||||
"rstar": 0.5,
|
||||
"eps": 1.0
|
||||
}
|
||||
}
|
||||
172
multigrid/examples/sedecim.json
Normal file
172
multigrid/examples/sedecim.json
Normal file
@@ -0,0 +1,172 @@
|
||||
{
|
||||
"grids": {
|
||||
"grid00": {
|
||||
"x": "linspace:-5:-2.5:128",
|
||||
"y": "linspace:2.5:5:128",
|
||||
"boundary_conditions": {
|
||||
"south": "grid01",
|
||||
"north": "grid11",
|
||||
"east": "grid03",
|
||||
"west": "grid33"
|
||||
}
|
||||
},
|
||||
"grid01": {
|
||||
"x": "linspace:-5:-2.5:128",
|
||||
"y": "linspace:0:2.5:128",
|
||||
"boundary_conditions": {
|
||||
"south": "grid10",
|
||||
"north": "grid00",
|
||||
"east": "grid02",
|
||||
"west": "grid32"
|
||||
}
|
||||
},
|
||||
"grid02": {
|
||||
"x": "linspace:-2.5:0:128",
|
||||
"y": "linspace:0:2.5:128",
|
||||
"boundary_conditions": {
|
||||
"south": "grid13",
|
||||
"north": "grid03",
|
||||
"east": "grid31",
|
||||
"west": "grid01"
|
||||
}
|
||||
},
|
||||
"grid03": {
|
||||
"x": "linspace:-2.5:0:128",
|
||||
"y": "linspace:2.5:5:128",
|
||||
"boundary_conditions": {
|
||||
"south": "grid02",
|
||||
"north": "grid12",
|
||||
"east": "grid30",
|
||||
"west": "grid00"
|
||||
}
|
||||
},
|
||||
"grid10": {
|
||||
"x": "linspace:-5:-2.5:128",
|
||||
"y": "linspace:-2.5:0:128",
|
||||
"boundary_conditions": {
|
||||
"south": "grid11",
|
||||
"north": "grid01",
|
||||
"east": "grid13",
|
||||
"west": "grid23"
|
||||
}
|
||||
},
|
||||
"grid11": {
|
||||
"x": "linspace:-5:-2.5:128",
|
||||
"y": "linspace:-5:-2.5:128",
|
||||
"boundary_conditions": {
|
||||
"south": "grid00",
|
||||
"north": "grid10",
|
||||
"east": "grid12",
|
||||
"west": "grid22"
|
||||
}
|
||||
},
|
||||
"grid12": {
|
||||
"x": "linspace:-2.5:0:128",
|
||||
"y": "linspace:-5:-2.5:128",
|
||||
"boundary_conditions": {
|
||||
"south": "grid03",
|
||||
"north": "grid13",
|
||||
"east": "grid21",
|
||||
"west": "grid11"
|
||||
}
|
||||
},
|
||||
"grid13": {
|
||||
"x": "linspace:-2.5:0:128",
|
||||
"y": "linspace:-2.5:0:128",
|
||||
"boundary_conditions": {
|
||||
"south": "grid12",
|
||||
"north": "grid02",
|
||||
"east": "grid20",
|
||||
"west": "grid10"
|
||||
}
|
||||
},
|
||||
"grid20": {
|
||||
"x": "linspace:0:2.5:128",
|
||||
"y": "linspace:-2.5:0:128",
|
||||
"boundary_conditions": {
|
||||
"south": "grid21",
|
||||
"north": "grid31",
|
||||
"east": "grid23",
|
||||
"west": "grid13"
|
||||
}
|
||||
},
|
||||
"grid21": {
|
||||
"x": "linspace:0:2.5:128",
|
||||
"y": "linspace:-5:-2.5:128",
|
||||
"boundary_conditions": {
|
||||
"south": "grid30",
|
||||
"north": "grid20",
|
||||
"east": "grid22",
|
||||
"west": "grid12"
|
||||
}
|
||||
},
|
||||
"grid22": {
|
||||
"x": "linspace:2.5:5:128",
|
||||
"y": "linspace:-5:-2.5:128",
|
||||
"boundary_conditions": {
|
||||
"south": "grid33",
|
||||
"north": "grid23",
|
||||
"east": "grid11",
|
||||
"west": "grid21"
|
||||
}
|
||||
},
|
||||
"grid23": {
|
||||
"x": "linspace:2.5:5:128",
|
||||
"y": "linspace:-2.5:0:128",
|
||||
"boundary_conditions": {
|
||||
"south": "grid22",
|
||||
"north": "grid32",
|
||||
"east": "grid10",
|
||||
"west": "grid20"
|
||||
}
|
||||
},
|
||||
"grid30": {
|
||||
"x": "linspace:0:2.5:128",
|
||||
"y": "linspace:2.5:5:128",
|
||||
"boundary_conditions": {
|
||||
"south": "grid31",
|
||||
"north": "grid21",
|
||||
"east": "grid33",
|
||||
"west": "grid03"
|
||||
}
|
||||
},
|
||||
"grid31": {
|
||||
"x": "linspace:0:2.5:128",
|
||||
"y": "linspace:0:2.5:128",
|
||||
"boundary_conditions": {
|
||||
"south": "grid20",
|
||||
"north": "grid30",
|
||||
"east": "grid32",
|
||||
"west": "grid02"
|
||||
}
|
||||
},
|
||||
"grid32": {
|
||||
"x": "linspace:2.5:5:128",
|
||||
"y": "linspace:0:2.5:128",
|
||||
"boundary_conditions": {
|
||||
"south": "grid23",
|
||||
"north": "grid33",
|
||||
"east": "grid01",
|
||||
"west": "grid31"
|
||||
}
|
||||
},
|
||||
"grid33": {
|
||||
"x": "linspace:2.5:5:128",
|
||||
"y": "linspace:2.5:5:128",
|
||||
"boundary_conditions": {
|
||||
"south": "grid32",
|
||||
"north": "grid22",
|
||||
"east": "grid00",
|
||||
"west": "grid30"
|
||||
}
|
||||
}
|
||||
},
|
||||
"integration_time": 2.0,
|
||||
"vortex": {
|
||||
"x0": -1.0,
|
||||
"y0": 0.0,
|
||||
"mach": 0.5,
|
||||
"rstar": 0.5,
|
||||
"eps": 1.0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user