-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Computational Mechanics 01 - Getting Started | ||
## Working with Python and Numerical Methods | ||
|
||
Welcome to Computational Mechanics Module #1 - Getting Started! | ||
|
||
There are three modules to get us started on our exploration of computational | ||
mechanics using Python, listed below each module are the learning objectives. | ||
|
||
1. [01_Interacting_with_Python](./notebooks/01_Interacting_with_Python.ipynb) | ||
* Using the `print()` function. The concept of _function_. | ||
* Using Python as a calculator. | ||
* Concepts of variable, type, assignment. | ||
* Special variables: `True`, `False`, `None`. | ||
* Supported operations, logical operations. | ||
* Reading error messages. | ||
|
||
2. [02_Working_with_Python](./notebooks/02_Working_with_Python.ipynb) | ||
* Good coding habits and file naming | ||
* How to define a function and return outputs | ||
* How to import libraries | ||
* Multidimensional arrays using NumPy | ||
* Accessing values and slicing in NumPy arrays | ||
* `%%time` magic to time cell execution. | ||
* Performance comparison: lists vs NumPy arrays | ||
* Basic plotting with `pyplot`. | ||
|
||
3. [03-Numerical_error](./notebooks/03-Numerical_error.ipynb) | ||
* Numerical integration with the Euler approximation | ||
* The source of truncation errors | ||
* The source of roundoff errors | ||
* How to time a numerical solution or a function | ||
* How to compare solutions | ||
* The definition of absolute error and relative error | ||
* How a numerical solution converges | ||
|