|
124 | 124 | "outputs": [], |
125 | 125 | "source": [ |
126 | 126 | "fig, ax = plt.subplots(1, 1, figsize=(10, 3))\n", |
127 | | - "ml.plots.xsection(xy=[(-150, 0), (150, 0)], ax=ax, params=True);" |
| 127 | + "ml.plots.xsection(\n", |
| 128 | + " xy=[(-150, 0), (150, 0)], ax=ax, params=True, units={\"kaq\": \"m/d\", \"c\": \"d\"}\n", |
| 129 | + ")" |
128 | 130 | ] |
129 | 131 | }, |
130 | 132 | { |
|
149 | 151 | "metadata": {}, |
150 | 152 | "outputs": [], |
151 | 153 | "source": [ |
152 | | - "ml.plots.vcontoursf1D(x1=-200, x2=200, nx=100, levels=20, color=\"C0\", figsize=(10, 3));" |
| 154 | + "ml.plots.vcontour_stream_function(\n", |
| 155 | + " x1=-200, x2=200, nx=100, levels=20, color=\"C0\", figsize=(10, 3)\n", |
| 156 | + ");" |
153 | 157 | ] |
154 | 158 | }, |
155 | 159 | { |
|
238 | 242 | "metadata": {}, |
239 | 243 | "outputs": [], |
240 | 244 | "source": [ |
241 | | - "ml.plots.vcontoursf1D(x1=-200, x2=200, nx=100, levels=20, color=\"C0\", figsize=(10, 3));" |
| 245 | + "ml.plots.vcontour_stream_function(\n", |
| 246 | + " x1=-200, x2=200, nx=100, levels=20, color=\"C0\", figsize=(10, 3)\n", |
| 247 | + ");" |
242 | 248 | ] |
243 | 249 | }, |
244 | 250 | { |
|
302 | 308 | "metadata": {}, |
303 | 309 | "outputs": [], |
304 | 310 | "source": [ |
305 | | - "ax = ml.plots.vcontoursf1D(\n", |
| 311 | + "ax = ml.plots.vcontour_stream_function(\n", |
306 | 312 | " x1=-200, x2=200, nx=100, levels=20, color=\"C0\", figsize=(10, 3), horizontal_axis=\"x\"\n", |
307 | 313 | ")\n", |
308 | 314 | "ld1.plot(ax); # plot wall" |
|
359 | 365 | "tfs.Constant(ml, 100, 0, 10)\n", |
360 | 366 | "ml.solve()\n", |
361 | 367 | "\n", |
362 | | - "ml.plots.vcontoursf1D(x1=-100, x2=100, nx=100, levels=20, color=\"C0\", figsize=(10, 3));" |
| 368 | + "ml.plots.vcontour_stream_function(\n", |
| 369 | + " x1=-100, x2=100, nx=100, levels=20, color=\"C0\", figsize=(10, 3)\n", |
| 370 | + ");" |
363 | 371 | ] |
364 | 372 | }, |
365 | 373 | { |
|
372 | 380 | "tfs.XsectionAreaSink(ml2, -50, 50, 0.001)\n", |
373 | 381 | "tfs.Constant(ml2, -100, 0, 10)\n", |
374 | 382 | "ml2.solve()\n", |
375 | | - "ml2.plots.vcontoursf1D(\n", |
| 383 | + "ml2.plots.vcontour_stream_function(\n", |
376 | 384 | " x1=-100, x2=100, nx=100, levels=20, color=\"C0\", figsize=(10, 3), horizontal_axis=\"x\"\n", |
377 | 385 | ");" |
378 | 386 | ] |
|
419 | 427 | "\n", |
420 | 428 | "ml.solve()\n", |
421 | 429 | "\n", |
422 | | - "ml.plots.vcontoursf1D(x1=-20, x2=20, nx=100, levels=20, color=\"C0\", figsize=(10, 3));" |
| 430 | + "ml.plots.vcontour_stream_function(\n", |
| 431 | + " x1=-20, x2=20, nx=100, levels=20, color=\"C0\", figsize=(10, 3)\n", |
| 432 | + ");" |
423 | 433 | ] |
424 | 434 | }, |
425 | 435 | { |
|
448 | 458 | "\n", |
449 | 459 | "ml.solve()\n", |
450 | 460 | "\n", |
451 | | - "ml.plots.vcontoursf1D(x1=-20, x2=20, nx=100, levels=20, color=\"C0\", figsize=(10, 3));" |
| 461 | + "ml.plots.vcontour_stream_function(\n", |
| 462 | + " x1=-20, x2=20, nx=100, levels=20, color=\"C0\", figsize=(10, 3)\n", |
| 463 | + ");" |
452 | 464 | ] |
453 | 465 | }, |
454 | 466 | { |
|
499 | 511 | "execution_count": null, |
500 | 512 | "metadata": {}, |
501 | 513 | "outputs": [], |
502 | | - "source": [ |
503 | | - "from timflow.steady.linesink1d import FluxDiffLineSink1D, HeadDiffLineSink1D" |
504 | | - ] |
| 514 | + "source": [] |
505 | 515 | }, |
506 | 516 | { |
507 | 517 | "cell_type": "code", |
|
512 | 522 | "ml = tfs.ModelMaq(kaq=[10], z=[0, -10], topboundary=\"conf\")\n", |
513 | 523 | "ls = tfs.River1D(ml, xls=0, hls=1, wh=\"H\", layers=0)\n", |
514 | 524 | "ls = tfs.River1D(ml, xls=200, hls=0, wh=\"H\", layers=0)\n", |
515 | | - "hd = HeadDiffLineSink1D(ml, xls=100)\n", |
516 | | - "fd = FluxDiffLineSink1D(ml, xls=100)\n", |
| 525 | + "hd = tfs.linesink1d.HeadDiffLineSink1D(ml, xls=100)\n", |
| 526 | + "fd = tfs.linesink1d.FluxDiffLineSink1D(ml, xls=100)\n", |
517 | 527 | "ml.solve()\n", |
518 | 528 | "\n", |
519 | 529 | "x = np.linspace(0, 200, 101)\n", |
|
526 | 536 | ], |
527 | 537 | "metadata": { |
528 | 538 | "kernelspec": { |
529 | | - "display_name": "Python 3", |
| 539 | + "display_name": "timflow (3.13.11)", |
530 | 540 | "language": "python", |
531 | 541 | "name": "python3" |
| 542 | + }, |
| 543 | + "language_info": { |
| 544 | + "codemirror_mode": { |
| 545 | + "name": "ipython", |
| 546 | + "version": 3 |
| 547 | + }, |
| 548 | + "file_extension": ".py", |
| 549 | + "mimetype": "text/x-python", |
| 550 | + "name": "python", |
| 551 | + "nbconvert_exporter": "python", |
| 552 | + "pygments_lexer": "ipython3", |
| 553 | + "version": "3.13.11" |
532 | 554 | } |
533 | 555 | }, |
534 | 556 | "nbformat": 4, |
|
0 commit comments