|
Nektar++
|
Classes | |
| class | Poly |
Functions | |
| as_poly (value) | |
| adv (component) | |
| install_manufactured_solution (text) | |
| build_session (base_session, workdir, formulation, order, nsteps, final_time) | |
| run_case (args, workdir, formulation, order, nsteps) | |
| observed_rates (errors) | |
| main () | |
Variables | |
| dict | MIN_RATES = {1: 0.85, 2: 1.70, 3: 2.30} |
| dict | NSTEPS_BY_ORDER = {1: [2, 4], 2: [2, 4], 3: [2, 4]} |
| list | FORMULATIONS = ["semiimplicit", "linearimplicit"] |
| list | VELOCITY_VARS = ["u", "v", "w"] |
| x = Poly.var(0) | |
| y = Poly.var(1) | |
| z = Poly.var(2) | |
| tuple | X = (x + 0.5) * (1.0 - x) |
| tuple | Y = (y + 0.5) * (1.5 - y) |
| Z = z * (1.0 - z) | |
| tuple | phi = (X**2) * (Y**2) * (Z**2) |
| tuple | phi_x = phi.deriv(0) |
| tuple | phi_y = phi.deriv(1) |
| tuple | phi_z = phi.deriv(2) |
| list | q = [phi_y - phi_z, phi_z - phi_x, phi_x - phi_y] |
| p0 = x * y + y * z + z * x | |
| str | A = "(1+0.1*sin(t))" |
| str | AT = "(0.1*cos(t))" |
| str | A0 = "1" |
| U0 | |
| V0 | |
| W0 | |
| P0 = p0.expr() | |
| str | U = f"{A}*{U0}" |
| str | V = f"{A}*{V0}" |
| str | W = f"{A}*{W0}" |
| P = P0 | |
| ADV_U | |
| ADV_V | |
| ADV_W | |
| PX | |
| PY | |
| PZ | |
| LAP_U | |
| LAP_V | |
| LAP_W | |
| str | FORCE_U = f"{AT}*{U0}+{A}*{A}*{ADV_U}+{PX}-Kinvis*{A}*{LAP_U}" |
| str | FORCE_V = f"{AT}*{V0}+{A}*{A}*{ADV_V}+{PY}-Kinvis*{A}*{LAP_V}" |
| str | FORCE_W = f"{AT}*{W0}+{A}*{A}*{ADV_W}+{PZ}-Kinvis*{A}*{LAP_W}" |
| str | MANUFACTURED_FUNCTIONS |
| str | FORCING_BLOCK |
| str | BOUNDARY_CONDITIONS |
| check_time_order.adv | ( | component | ) |
Definition at line 123 of file check_time_order.py.
| check_time_order.as_poly | ( | value | ) |
Definition at line 104 of file check_time_order.py.
Referenced by check_time_order.Poly.__add__(), check_time_order.Poly.__mul__(), check_time_order.Poly.__rsub__(), and check_time_order.Poly.__sub__().
| check_time_order.build_session | ( | base_session, | |
| workdir, | |||
| formulation, | |||
| order, | |||
| nsteps, | |||
| final_time | |||
| ) |
Definition at line 206 of file check_time_order.py.
References install_manufactured_solution().
Referenced by run_case().
| check_time_order.install_manufactured_solution | ( | text | ) |
Definition at line 186 of file check_time_order.py.
Referenced by build_session().
| check_time_order.main | ( | ) |
Definition at line 287 of file check_time_order.py.
References observed_rates(), and run_case().
| check_time_order.observed_rates | ( | errors | ) |
Definition at line 283 of file check_time_order.py.
Referenced by main().
| check_time_order.run_case | ( | args, | |
| workdir, | |||
| formulation, | |||
| order, | |||
| nsteps | |||
| ) |
Definition at line 244 of file check_time_order.py.
References build_session().
Referenced by main().
| str check_time_order.A = "(1+0.1*sin(t))" |
Definition at line 126 of file check_time_order.py.
| str check_time_order.A0 = "1" |
Definition at line 128 of file check_time_order.py.
| check_time_order.ADV_U |
Definition at line 137 of file check_time_order.py.
| check_time_order.ADV_V |
Definition at line 137 of file check_time_order.py.
| check_time_order.ADV_W |
Definition at line 137 of file check_time_order.py.
| str check_time_order.AT = "(0.1*cos(t))" |
Definition at line 127 of file check_time_order.py.
| str check_time_order.BOUNDARY_CONDITIONS |
Definition at line 172 of file check_time_order.py.
Definition at line 141 of file check_time_order.py.
Definition at line 142 of file check_time_order.py.
Definition at line 143 of file check_time_order.py.
| str check_time_order.FORCING_BLOCK |
Definition at line 166 of file check_time_order.py.
| list check_time_order.FORMULATIONS = ["semiimplicit", "linearimplicit"] |
Definition at line 14 of file check_time_order.py.
| check_time_order.LAP_U |
Definition at line 139 of file check_time_order.py.
| check_time_order.LAP_V |
Definition at line 139 of file check_time_order.py.
| check_time_order.LAP_W |
Definition at line 139 of file check_time_order.py.
| str check_time_order.MANUFACTURED_FUNCTIONS |
Definition at line 145 of file check_time_order.py.
| dict check_time_order.MIN_RATES = {1: 0.85, 2: 1.70, 3: 2.30} |
Definition at line 12 of file check_time_order.py.
| dict check_time_order.NSTEPS_BY_ORDER = {1: [2, 4], 2: [2, 4], 3: [2, 4]} |
Definition at line 13 of file check_time_order.py.
| check_time_order.P = P0 |
Definition at line 135 of file check_time_order.py.
| check_time_order.P0 = p0.expr() |
Definition at line 131 of file check_time_order.py.
Definition at line 116 of file check_time_order.py.
| tuple check_time_order.phi_x = phi.deriv(0) |
Definition at line 117 of file check_time_order.py.
| tuple check_time_order.phi_y = phi.deriv(1) |
Definition at line 118 of file check_time_order.py.
| tuple check_time_order.phi_z = phi.deriv(2) |
Definition at line 119 of file check_time_order.py.
| check_time_order.PX |
Definition at line 138 of file check_time_order.py.
| check_time_order.PY |
Definition at line 138 of file check_time_order.py.
| check_time_order.PZ |
Definition at line 138 of file check_time_order.py.
Definition at line 120 of file check_time_order.py.
Definition at line 132 of file check_time_order.py.
| check_time_order.U0 |
Definition at line 130 of file check_time_order.py.
Definition at line 133 of file check_time_order.py.
| check_time_order.V0 |
Definition at line 130 of file check_time_order.py.
| list check_time_order.VELOCITY_VARS = ["u", "v", "w"] |
Definition at line 15 of file check_time_order.py.
Definition at line 134 of file check_time_order.py.
| check_time_order.W0 |
Definition at line 130 of file check_time_order.py.
| check_time_order.x = Poly.var(0) |
Definition at line 108 of file check_time_order.py.
Definition at line 113 of file check_time_order.py.
| check_time_order.y = Poly.var(1) |
Definition at line 109 of file check_time_order.py.
Definition at line 114 of file check_time_order.py.
| check_time_order.z = Poly.var(2) |
Definition at line 110 of file check_time_order.py.
Definition at line 115 of file check_time_order.py.