Home Page Icon
Home Page
Table of Contents for
Dedication
Close
Dedication
by
Hardcore Programming for Mechanical Engineers
Cover Page
Title Page
Copyright Page
Dedication
About the Author
BRIEF CONTENTS
CONTENTS IN DETAIL
ACKNOWLEDGMENTS
INTRODUCTION
Who This Book Is For
What You’ll Learn
About This Book
Setting Up Your Environment
PyCharm Introduction
Summary
PART I BASICS
1 A SHORT PYTHON PRIMER
Python Packages and Modules
Running Files
Importing Code
Documenting the Code with Docstrings
Collections in Python
Destructuring
Summary
2 TWO PYTHON PARADIGMS
Functional Programming
Object-Oriented Programming
Type Hints
Summary
3 THE COMMAND LINE
Unix and Windows
Finding Your Shell
Files and Directories
Running Python Scripts
Passing Arguments to the Script
Standard Input and Output
Using PyCharm’s Python Console
Summary
PART II 2D GEOMETRY
4 POINTS AND VECTORS
The Point Class
The Vector Class
Completing Our Classes
Unit Testing
Summary
5 LINES AND SEGMENTS
Segment Class
Line Class
Segment’s Bisector
Summary
6 POLYGONS
Polygon Class
Circle Class
Rect Class
Summary
7 AFFINE TRANSFORMATIONS
Affine Transformations
The Affine Transformation Class
Interpolating Transformations
Geom2D Final Touches
Summary
PART III GRAPHICS AND SIMULATIONS
8 DRAWING VECTOR IMAGES
Bitmaps and Vector Images
The SVG Format
The svg Package
The SVG Primitives
Primitives Result
Package Imports
Summary
9 BUILDING A CIRCLE FROM THREE POINTS
Application Architecture
Setup
Reading the Input and Configuration Files
Problem Model and Resolution
Generating Output
Distributing Our Application
Summary
10 GRAPHICAL USER INTERFACES AND THE CANVAS
Tkinter
Drawing Our Geometric Primitives
Summary
11 ANIMATIONS, SIMULATIONS, AND THE TIME LOOP
Defining Terms
What Is the Time Loop?
Our First Animation
Abstracting the Main Loop Function
Refactoring Our Simulation
Cleaning Up the Module
Summary
12 ANIMATING AFFINE TRANSFORMATIONS
Application Architecture and Visibility Diagrams
Setting Up
Reading the Configuration File
Reading Input
Running the Simulation
Summary
PART IV SYSTEMS OF EQUATIONS
13 MATRICES AND VECTORS
List Utils
Setup
Vectors
Matrices
Summary
14 LINEAR EQUATIONS
Systems of Linear Equations
Numerical Methods
Cholesky Decomposition
Summary
PART V TRUSS STRUCTURES
15 STRUCTURAL MODELS
Solving Structural Problems
Structural Member Internal Forces
Tension and Compression
Plane Trusses
Two-Force Members
Stiffness Matrices in Global Coordinates
Original Structure Model
The Structure Solution Model
Summary
16 STRUCTURE RESOLUTION
Structure Resolution
Advanced Unit Testing: Test Doubles
Testing the Structure Solution Class
Testing the Structure Resolution Process
Summary
17 READING INPUT FROM A FILE
Defining the Input Format
Finding the Regular Expressions
Setup
Parsing Nodes
Parsing Bars
Parsing Loads
Parsing the Structure
Summary
18 PRODUCING AN SVG IMAGE AND TEXT FILE
Setup
From Structure Solution to SVG
From Structure Solution to Text
Summary
19 ASSEMBLING OUR APPLICATION
A General Overview
Setup
Input Arguments
Generating the Output
The Main Script
Trying the App
Summary
BIBLIOGRAPHY
INDEX
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Copyright Page
Next
Next Chapter
About the Author
To my wife Jen, the person I most admire.
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset