-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ASCII support for Unicode ops #142
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7dadf60
Add ASCII support for Unicode ops
lukem12345 b437458
Loop through incident in unicode\!
lukem12345 be6a614
Replace vector calculus operators with DEC equivalents
lukem12345 c972e5a
Escape backslash in ascii doc
lukem12345 c235acb
Fix comment in vec_to_dec
lukem12345 fc8c8f8
Add advection Vec equivalent
lukem12345 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,27 @@ | ||
# ASCII and Vector Calculus Operators | ||
|
||
Some users may have trouble entering unicode characters like ⋆ or ∂ in their development environment. So, we offer the following ASCII equivalents. Further, some users may like to use vector calculus symbols instead of exterior calculus symbols where possible. We offer support for such symbols as well. | ||
|
||
## ASCII Equivalents | ||
|
||
| Unicode | ASCII | Meaning | | ||
| ------- | ----- | ------- | | ||
| ∂ₜ | dt | derivative w.r.t. time | | ||
| ⋆ | star | Hodge star, generalizing transpose | | ||
| Δ | lapl | laplacian | | ||
| ∧ | wedge | wedge product, generalizing the cross product | | ||
| ⋆⁻¹ | star\_inv | Hodge star, generalizing transpose | | ||
| ∘(⋆,d,⋆) | div | divergence, a.k.a. ∇⋅ | | ||
|
||
## Vector Calculus Equivalents | ||
|
||
| Vec | DEC | How to enter | | ||
| -------- | ---------------- | -------------------------- | | ||
| grad | d | grad | | ||
| div | ∘(⋆,d,⋆) | div | | ||
| curl | ∘(d,⋆) | curl | | ||
| ∇ | d | \nabla | | ||
| ∇ᵈ | ∘(⋆,d,⋆) | \nabla \<tab\> \\^d \<tab\> | | ||
| ∇x | ∘(d,⋆) | \nabla \<tab\> x | | ||
| adv(X,Y) | ∘(⋆,d,⋆)(X∧Y) | adv | | ||
|
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
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might want to save
dt
for the differential in thet
direction likedx, dy, dz
. What do you think aboutddt
orpartial_t
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't seen enough
d/dt
s in practice being used that way. With the major exception beingt
as a parameter of a curve. Excluding capitalT
as well.Saying that though, I am sure there are some major exceptions I haven’t thought of where this might occur. Maybe in some GCM?
I will keep an eye open where there is a differential equation in time, defined along a local parameterization
t
. Surely there is some 1D model that does this, and I will see what notation they use.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't been able to think up any examples, so I am going to put a pin in this and merge now.