Skip to content
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

[Review] Start on Projectile SRS #1428

Merged
merged 153 commits into from
Jun 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
b4ebcf0
Updated coordinate system
samm82 May 27, 2019
99eb375
Added empty Assumptions section
samm82 May 27, 2019
f3000e2
Added placeholder assumption - error: no TM found
samm82 May 27, 2019
259458f
Added placeholder TM - everything generates now
samm82 May 27, 2019
c9025c2
Fixed TMs
samm82 May 27, 2019
519c4d7
Added empty assumptions
samm82 May 27, 2019
9eb2650
Added descriptions to assumptions
samm82 May 27, 2019
9673548
Added Goal Statements
samm82 May 27, 2019
471ce68
Added DDs
samm82 May 27, 2019
cb4a7a0
Added General Definition 2 to txt
samm82 May 27, 2019
afddef6
Added GDs
samm82 May 27, 2019
903b48d
Merge branch 'master' into projectileSRS
samm82 May 28, 2019
41cf00a
Added IMs
samm82 May 28, 2019
d1e1d45
Updated stable with IMs
samm82 May 28, 2019
2cc9186
Added Concepts
samm82 May 28, 2019
c6105a8
Removed redundant brackets
samm82 May 28, 2019
6e7b46a
Merge branch 'master' into projectileSRS
samm82 May 28, 2019
73a4f1f
Updated README
samm82 May 28, 2019
4c4cdf7
Renamed to SSD
samm82 May 28, 2019
07d86d5
Merge branch 'master' into projectileSRS
samm82 May 29, 2019
9c3fc23
Added speed and scalarAccel and used in TMs
samm82 May 29, 2019
e7af638
Merge branch 'master' into projectileSRS
samm82 May 29, 2019
85e2dd9
Used utils in Projectile
samm82 May 29, 2019
cd17559
Defined some speed and (unused) velocity quantities
samm82 May 29, 2019
8fa2447
Fixed up GDs with scalar quantities
samm82 May 29, 2019
69f8797
Updated stable from GD fix
samm82 May 29, 2019
9a02e89
Updated concepts ie. 'launch angle' instead of 'projectile angle'
samm82 May 29, 2019
45b2903
Added vcUnit and added units to d_offset
samm82 May 29, 2019
1145419
Updated stable for units in d_offset
samm82 May 29, 2019
c7f4767
Make sure components are only of vectors
samm82 May 29, 2019
c4944d3
Changed TMs to use vectors
samm82 May 30, 2019
477c66f
Merge branch 'master' into projectileSRS
samm82 Jun 3, 2019
ca537a3
Fixed imports from utils merge
samm82 Jun 3, 2019
b9c11f8
Switched symbols of d to r in Projectile
samm82 Jun 3, 2019
742681d
Sketch of projectile motion SRS notes
smiths Jun 4, 2019
2a1ea38
Merge branch 'projectileSRS' of https://github.com/JacquesCarette/Dra…
smiths Jun 4, 2019
db21309
Updated assumptions
samm82 Jun 4, 2019
f3924d1
Removed assumption for neglecting Earth's curvature
samm82 Jun 4, 2019
7da1402
Removed redundant import
samm82 Jun 4, 2019
266a2f0
Merge branch 'master' into projectileSRS
samm82 Jun 5, 2019
83dc46c
Updated rectVelGD
samm82 Jun 5, 2019
5e63332
Added rectPosGD
samm82 Jun 5, 2019
dacc49b
Added velVecGD
samm82 Jun 5, 2019
8eb8eed
Added posVecGD
samm82 Jun 5, 2019
2e0b4c8
Removed extra GDs
samm82 Jun 5, 2019
63ee5fe
Made general vector derivation sentence
samm82 Jun 5, 2019
d79615a
Created getVec
samm82 Jun 5, 2019
975adea
Removed vectors from GD1 and GD2 (except for position)
samm82 Jun 5, 2019
2807130
Re-added Earth curvature assumption
samm82 Jun 5, 2019
9c105d6
Removed position vector from GD1 and GD2; made GD2 intro similar to GD1
samm82 Jun 5, 2019
f91aff3
Final touch-ups to GDs
samm82 Jun 5, 2019
33cec63
Tweaked DDs
samm82 Jun 5, 2019
c504bf7
Removed redundant export from DDs
samm82 Jun 5, 2019
c17d5c8
Added timeIM
samm82 Jun 6, 2019
fe2c6f1
Switched to grav accel
samm82 Jun 6, 2019
3f1a9bd
Added launch distance IM
samm82 Jun 6, 2019
f2307da
SWitched distances from r to d for consistency
samm82 Jun 6, 2019
0ba603f
Improved derivations of GD3 and GD4
samm82 Jun 6, 2019
d9ee008
Pulled out common functions to utils
samm82 Jun 6, 2019
0fe1862
Referenced other assumptions in constAccel
samm82 Jun 7, 2019
6cbd083
Switched from distance to position; minor fixes
samm82 Jun 7, 2019
e4053e7
Linted assumptions
samm82 Jun 7, 2019
1550ff4
Added more assumption references
samm82 Jun 7, 2019
01d3aec
Removed redundant import
samm82 Jun 7, 2019
f264e18
Merge branch 'master' into projectileSRS
samm82 Jun 7, 2019
1442e72
Merge branch 'master' into projectileSRS
samm82 Jun 10, 2019
c80c20f
Merge branch 'master' into projectileSRS
samm82 Jun 10, 2019
a1c83fd
Merge branch 'master' into projectileSRS
samm82 Jun 11, 2019
5b34924
Removed getVec
samm82 Jun 11, 2019
41419e0
Linted from merge
samm82 Jun 11, 2019
dc684d1
Merge branch 'master' into projectileSRS
samm82 Jun 12, 2019
5989dfb
Merge branch 'master' into projectileSRS
samm82 Jun 12, 2019
cec24fe
Added placeholder FRs and NFRs (from GlassBR)
samm82 Jun 12, 2019
955ba53
Filled in Input FR
samm82 Jun 12, 2019
d921d29
Filled in VerifyParams requirement; added Data Constraints
samm82 Jun 12, 2019
ddc2464
Filled in rest of requirements
samm82 Jun 12, 2019
442e47b
Linted
samm82 Jun 12, 2019
eaf3296
Merge branch 'master' into projectileSRS
samm82 Jun 13, 2019
70a4d15
Removed manyNames
samm82 Jun 13, 2019
9fc2ca6
Added Brooks and Dr. Smith to Projectile
samm82 Jun 13, 2019
78177bb
Started adding empty reference section
samm82 Jun 13, 2019
047fe09
Merge branch 'master' into projectileSRS
samm82 Jun 14, 2019
b597041
Populated T of A and A
samm82 Jun 14, 2019
2d1f4e3
Added empty Table of Symbols
samm82 Jun 14, 2019
ef0ff00
Started Terms and Defs section
samm82 Jun 14, 2019
e80592c
Added Physical System Description
samm82 Jun 14, 2019
e0dd454
Fixed Goals section
samm82 Jun 14, 2019
aa59457
Updated assumptions
samm82 Jun 14, 2019
0ba7217
Added Introduction and Scope
samm82 Jun 14, 2019
ca98de3
Added missing information to scope
samm82 Jun 14, 2019
8ba84a6
Merge branch 'master' into projectileSRS
samm82 Jun 17, 2019
1a066e2
Improved labels of GDs
samm82 Jun 17, 2019
d510b66
Figure improvements; referenced figure in DDs
samm82 Jun 17, 2019
31f3b09
Added sources to TMs
samm82 Jun 17, 2019
96318c9
Changed 'launch duration' to 'flight duration' and minor fixes
samm82 Jun 17, 2019
b55871b
Switched launch angle to radians
samm82 Jun 17, 2019
8bc3ab6
Added 1D to table of acronyms
samm82 Jun 17, 2019
59ead31
Populated Table of Symbols
samm82 Jun 17, 2019
889bf20
Populated Table of Units
samm82 Jun 17, 2019
6479b7b
Added note about launch angle constraint in IMs
samm82 Jun 17, 2019
801611d
Updates to Notes sections and hitIM
samm82 Jun 17, 2019
863ad93
Changed typical value of target distance
samm82 Jun 17, 2019
e2bd5ea
Merge branch 'master' into projectileSRS
samm82 Jun 17, 2019
48a5324
Merge branch 'master' into projectileSRS
samm82 Jun 18, 2019
88aa136
Added gravity to terms and defs; minor fixes
samm82 Jun 18, 2019
e0519b9
Added messageIM
samm82 Jun 18, 2019
d3640d4
Updated Output-Values FR
samm82 Jun 18, 2019
24753fe
Removed hitIM
samm82 Jun 18, 2019
fa4b878
Removed isShortIM
samm82 Jun 18, 2019
f76244c
Improved constraints in IMs
samm82 Jun 18, 2019
8b1ca8d
Linted
samm82 Jun 18, 2019
e801ed6
Added tolerance to Aux Constants; closes #1493
samm82 Jun 18, 2019
84c686d
Added g to Aux Consts; part of #1493
samm82 Jun 18, 2019
7557f50
Added references to Aux Consts; part of #1493
samm82 Jun 18, 2019
378d9ea
Changed 'tolerance for a hit' to 'hit tolerance'
samm82 Jun 18, 2019
5b9ca60
Changed Props of Cor Sol to say 'Not applicable.'
samm82 Jun 18, 2019
1ed9ab8
Linted
samm82 Jun 18, 2019
b39fe1b
Merge branch 'master' into projectileSRS
samm82 Jun 18, 2019
ef5d8bf
Fixed Projectile from merge of formattingImprovements
samm82 Jun 18, 2019
0ec93e7
Merge branch 'master' into projectileSRS
samm82 Jun 19, 2019
f39ccdc
Updated stable from master merge
samm82 Jun 19, 2019
58c8946
Added rectilinear
samm82 Jun 19, 2019
83dba9f
Fixed target def and component pos units; updated assumptions in GDs
samm82 Jun 19, 2019
de028a2
Added Traceability Matrices; closes #1584
samm82 Jun 19, 2019
cbd4f5f
Changed helper expressions from Sentence to Expr
samm82 Jun 19, 2019
bc65ad8
Moved cartesian and rightHand to Math; added to Terms and Defs
samm82 Jun 19, 2019
c472eff
Added axis and direction concepts for x, y, and z
samm82 Jun 19, 2019
9a0bbee
Added math domain to dimension concepts; removed redundant import
samm82 Jun 19, 2019
ee1ab31
Empty commit to rebuild Travis CI
samm82 Jun 19, 2019
3efcc46
Merge branch 'master' into projectileSRS
samm82 Jun 20, 2019
82ea314
Used better variable names
samm82 Jun 20, 2019
b7053ad
Added DD for magnitude of velocity
samm82 Jun 20, 2019
45da4f7
Removed rightHand; used v_launch in IMs
samm82 Jun 21, 2019
03397c5
Merge branch 'master' into projectileSRS
samm82 Jun 24, 2019
666a71b
Merge branch 'master' into projectileSRS
samm82 Jun 24, 2019
3b37b2f
Merge branch 'master' into projectileSRS
samm82 Jun 25, 2019
f3d366d
Feedback on Draft 2 of Projectile SRS
smiths Jun 25, 2019
3a88d2e
New version of feedback in tiff format
smiths Jun 25, 2019
33c373d
Added VectorUnits to TSIntro
samm82 Jun 25, 2019
046f21a
Added xComp, yComp, and zComp
samm82 Jun 25, 2019
7b91910
Reverted xComp and yComp usage in SSP
samm82 Jun 25, 2019
05090db
Various wording fixes
samm82 Jun 25, 2019
b2328cb
Added note to Magnitude of Velocity DD
samm82 Jun 25, 2019
8d8aec7
Fixed Cartesian definition
samm82 Jun 25, 2019
176ac21
Merge branch 'master' into projectileSRS
samm82 Jun 26, 2019
578027e
Added References section; closes #1622
samm82 Jun 26, 2019
07e9696
Added constraint to messageIM; closes #1623
samm82 Jun 26, 2019
b6cc273
Merge branch 'master' into projectileSRS
samm82 Jun 26, 2019
f49f9e8
Updated Physical System diagram; closes #1620
samm82 Jun 27, 2019
0f0688b
Fixed contraint in Output Data Contraints Table
samm82 Jun 27, 2019
bae9b82
Fixed manual code based on changes to Projectile SRS
samm82 Jun 27, 2019
d03a0bb
Added Hibbeler reference
samm82 Jun 27, 2019
33f099e
Merge branch 'master' into projectileSRS
samm82 Jun 27, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added code/datafiles/Projectile/Launch.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 10 additions & 1 deletion code/datafiles/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--------------------------------------------------
### Summary of Folder Structure and File Contents
Last updated: July 26, 2018
Last updated: June 14, 2019
--------------------------------------------------

**GamePhysics**
Expand All @@ -9,8 +9,17 @@ Last updated: July 26, 2018
**GlassBR**
- Contains additional "helper" files for the GlassBR example

**NoPCM**
- Contains additional "helper" files for the NoPCM example

**Projectile**
- Contains additional "helper" files for the Projectile example

**SSP**
- Contains additional "helper" files for the SSP example

**SWHS**
- Contains additional "helper" files for the SWHS example

README.md
- This file
35 changes: 27 additions & 8 deletions code/drasil-data/Data/Drasil/Concepts/Math.hs
Original file line number Diff line number Diff line change
@@ -1,31 +1,37 @@
module Data.Drasil.Concepts.Math where

import Language.Drasil hiding (number)
import Language.Drasil.ShortHands (lX, lY, lZ)
import Data.Drasil.IdeaDicts
import Utils.Drasil

import Control.Lens ((^.))

mathcon :: [ConceptChunk]
mathcon = [angle, area, calculation, diameter, equation, euclidN, euclidSpace, gradient,
graph, law, matrix, norm, normal, normalV, number, orient, parameter, perp,
perpV, pi_, probability, shape, surArea, surface, unit_, unitV, vector, rate,
change, rOfChng, constraint]
mathcon = [angle, area, calculation, cartesian, change, constraint, diameter,
equation, euclidN, euclidSpace, gradient, graph, law, matrix, norm, normal,
normalV, number, orient, parameter, perp, perpV, pi_, probability, rOfChng,
rate, rightHand, shape, surArea, surface, unitV, unit_, vector, xAxis, xComp,
xDir, yAxis, yComp, yDir, zAxis, zComp, zDir]

mathcon' :: [CI]
mathcon' = [pde, ode, de]

angle, area, calculation, diameter, equation, euclidN, euclidSpace, gradient,
graph, law, matrix, norm, normal, normalV, number, orient, parameter, perp,
perpV, pi_, probability, shape, surArea, surface, unit_, unitV, vector, rate,
change, rOfChng, constraint :: ConceptChunk
angle, area, calculation, cartesian, change, constraint, diameter, equation,
euclidN, euclidSpace, gradient, graph, law, matrix, norm, normal, normalV,
number, orient, parameter, perp, perpV, pi_, probability, rOfChng, rate,
rightHand, shape, surArea, surface, unitV, unit_, vector, xAxis, xComp, xDir,
yAxis, yComp, yDir, zAxis, zComp, zDir :: ConceptChunk

pde, ode, de :: CI

angle = dcc "angle" (cn' "angle") ("The amount of rotation needed to bring one line or plane into" ++
"coincidence with another")
area = dcc "area" (cn' "area") "A part of an object or surface"
calculation = dcc "calculation" (cn' "calculation") "A mathematical determination of the size or number of something"
cartesian = dcc "cartesian" (pn' "Cartesian coordinate system") ("A coordinate system that specifies each point uniquely in a plane by a set " ++
"of numerical coordinates, which are the signed distances to the point from " ++
"two fixed perpendicular oriented lines, measured in the same unit of length.")
change = dcc "change" (cn' "change") "Difference between relative start and end states of an object"
constraint = dcc "constraint" (cn' "constraint") "A condition that the solution must satisfy"
diameter = dcc "diameter" (cn' "diameter") ("Any straight line segment that passes through the center of the circle" ++
Expand All @@ -47,12 +53,25 @@ perp = dcc "perp" (cn' "perpendicular") "At right angl
pi_ = dcc "pi" (cn' "ratio of circumference to diameter for any circle") "The ratio of a circle's circumference to its diameter"
probability = dcc "probability" (cnIES "probability") "The likelihood of an event to occur"
rate = dcc "rate" (cn' "rate") "Ratio that compares two quantities having different units of measure"
rightHand = dcc "rightHand" (cn' "right-handed coordinate system") "A coordinate system where the positive z-axis comes out of the screen."
shape = dcc "shape" (cn' "shape") "The outline of an area or figure"
surface = dcc "surface" (cn' "surface") "The outer or topmost boundary of an object"
unit_ = dcc "unit" (cn' "unit") "Identity element"
vector = dcc "vector" (cn' "vector") "Object with magnitude and direction"
orient = dcc "orientation" (cn' "orientation") "The relative physical position or direction of something"

xAxis = dcc "xAxis" (nounPhraseSent $ P lX :+: S "-axis") "the primary axis of a system of coordinates"
yAxis = dcc "yAxis" (nounPhraseSent $ P lY :+: S "-axis") "the secondary axis of a system of coordinates"
zAxis = dcc "zAxis" (nounPhraseSent $ P lZ :+: S "-axis") "the tertiary axis of a system of coordinates"

xComp = dcc "xComp" (nounPhraseSent $ P lX :+: S "-component") "the component of a vector in the x-direction"
yComp = dcc "yComp" (nounPhraseSent $ P lY :+: S "-component") "the component of a vector in the y-direction"
zComp = dcc "zComp" (nounPhraseSent $ P lZ :+: S "-component") "the component of a vector in the z-direction"

xDir = dcc "xDir" (nounPhraseSent $ P lX :+: S "-direction") "the direction aligned with the x-axis"
yDir = dcc "yDir" (nounPhraseSent $ P lY :+: S "-direction") "the direction aligned with the y-axis"
zDir = dcc "zDir" (nounPhraseSent $ P lZ :+: S "-direction") "the direction aligned with the z-axis"

--FIXME: use nounphrase instead of cn'
de = commonIdeaWithDict "de" (cn' "differential equation") "DE" [mathematics]
ode = commonIdeaWithDict "ode" (cn' "Ordinary Differential Equation") "ODE" [mathematics]
Expand Down
87 changes: 65 additions & 22 deletions code/drasil-data/Data/Drasil/Concepts/Physics.hs
Original file line number Diff line number Diff line change
@@ -1,33 +1,39 @@
module Data.Drasil.Concepts.Physics where

--This is obviously a bad name, but for now it will do until we come
-- up with a better one.
import Language.Drasil
import Utils.Drasil

import Data.Drasil.IdeaDicts (mathematics, physics)
import Data.Drasil.Concepts.Documentation (property, value)
import Data.Drasil.Concepts.Math (xComp, xDir, yComp, yDir)
import Control.Lens((^.)) --need for parametrization hack

physicCon :: [ConceptChunk]
physicCon = [rigidBody, velocity, friction, elasticity, energy, mechEnergy, collision, space,
cartesian, rightHand, restitutionCoef, acceleration, height,
momentOfInertia, force, impulseS, impulseV, displacement,
gravitationalAccel, gravitationalConst, position, distance,
time, torque, weight, fbd, linear, angular, tension, compression, stress,
strain, angDisp, angVelo, angAccel, linDisp, linVelo, linAccel,
joint, damping, pressure, cohesion, isotropy, kEnergy, chgInVelocity, potEnergy]
physicCon = [acceleration, angAccel, angDisp, angVelo, angular, chgInVelocity,
cohesion, collision, compression, constAccel, constAccelV, damping,
displacement, distance, elasticity, energy, fSpeed, fVel, fbd, force,
friction, gravity, gravitationalAccel, gravitationalConst, height, iPos,
iSpeed, iVel, impulseS, impulseV, isotropy, ixPos, ixVel, iyPos, iyVel,
joint, kEnergy, linAccel, linDisp, linVelo, linear, mechEnergy,
momentOfInertia, position, potEnergy, pressure, restitutionCoef, rectilinear,
rigidBody, scalarAccel, scalarPos, space, speed, strain, stress, tension,
time, torque, velocity, weight, xAccel, xConstAccel, xDist, xPos, xVel,
yAccel, yConstAccel, yDist, yPos, yVel]

physicCon' :: [CI]
physicCon' = [oneD, twoD, threeD]

rigidBody, velocity, friction, elasticity, energy, mechEnergy, collision, space,
cartesian, rightHand, restitutionCoef, acceleration, height,
momentOfInertia, force, impulseS, impulseV, displacement,
gravitationalAccel, gravitationalConst, position, distance,
time, torque, weight, fbd, linear, angular, tension, compression, stress,
strain, angDisp, angVelo, angAccel, linDisp, linVelo, linAccel,
joint, damping, pressure,cohesion, isotropy, kEnergy, chgInVelocity, potEnergy:: ConceptChunk
acceleration, angAccel, angDisp, angVelo, angular, chgInVelocity, cohesion,
collision, compression, constAccel, constAccelV, damping, displacement,
distance, elasticity, energy, fSpeed, fVel, fbd, force, friction, gravity,
gravitationalAccel, gravitationalConst, height, iPos, iSpeed, iVel, impulseS,
impulseV, isotropy, ixPos, ixVel, iyPos, iyVel, joint, kEnergy, linAccel,
linDisp, linVelo, linear, mechEnergy, momentOfInertia, position, potEnergy,
pressure, rectilinear, restitutionCoef, rigidBody, scalarAccel, scalarPos,
space, speed, strain, stress, tension, time, torque, velocity, weight,
xAccel, xConstAccel, xDist, xPos, xVel, yAccel, yConstAccel, yDist,
yPos, yVel :: ConceptChunk

oneD, twoD, threeD :: CI
oneD = commonIdeaWithDict "oneD" (cn "one-dimensional") "1D" [mathematics, physics]
Expand All @@ -38,6 +44,8 @@ rigidBody = dcc "rigidBody" (cnIES "rigid body")
"A solid body in which deformation is neglected."
velocity = dccWDS "velocity" (cnIES "velocity")
(S "The rate of change of a body's" +:+ phrase position)
speed = dccWDS "speed" (cn' "speed")
(S "The magnitude of the" +:+ phrase velocity +:+ S "vector")
friction = dcc "friction" (cn' "friction")
"The force resisting the relative motion of two surfaces."
elasticity = dcc "elasticity" (cnIES "elasticity")
Expand All @@ -53,11 +61,8 @@ collision = dcc "collision" (cn' "collision")
space = dcc "space" (cn' "space")
("A two-dimensional extent where objects and " ++
"events have relative positions and directions.")
cartesian = dcc "cartesian" (pn' "Cartesian coordinate system")
("A coordinate system that specifies each point uniquely in a plane by a " ++
"pair of numerical coordinates.")
rightHand = dcc "rightHand" (cn' "right-handed coordinate system")
"A coordinate system where the positive z-axis comes out of the screen."
rectilinear = dcc "rectilinear" (cn "rectilinear")
"Occuring in one dimension."

joint = dcc "joint" (cn' "joint") ("a connection between two rigid " ++
"bodies which allows movement with one or more degrees of freedom")
Expand All @@ -66,8 +71,12 @@ kEnergy = dccWDS "kEnergy" (cn "kinetic energy")
S "a body possess due to its motion.")
position = dcc "position" (cn' "position")
"An object's location relative to a reference point"
scalarPos = dccWDS "scalarPos" (cn' "scalar position")
(S "The magnitude of the " +:+ phrase position +:+ S "vector")
acceleration = dccWDS "acceleration" (cn' "acceleration")
(S "The rate of change of a body's" +:+ phrase velocity)
scalarAccel = dccWDS "scalarAccel" (cn' "scalar acceleration")
(S "The magnitude of the " +:+ phrase acceleration +:+ S "vector")
displacement = dccWDS "displacement" (cn' "displacement")
(S "The change in" +:+ (position ^. defn))
force = dcc "force" (cn' "force")
Expand All @@ -90,6 +99,38 @@ pressure = dccWDS "pressure" (cn' "pressure")
height = dccWDS "height" (cn' "height") (S "The" +:+ phrase distance +:+
S "above a reference point for a point of interest.")

-- Some variants of distance, speed, velocity, and scalar acceleration
-- FIXME: Complete all variants?
-- FIXME: Pull out commonalities?

xDist = dccWDS "xDist" (nounPhraseSent $ phrase distance +:+ S "in the" +:+ phrase xDir) (atStart distance +:+ S "in the" +:+ phrase xDir)
yDist = dccWDS "yDist" (nounPhraseSent $ phrase distance +:+ S "in the" +:+ phrase yDir) (atStart distance +:+ S "in the" +:+ phrase yDir)

iPos = dccWDS "iPos" (cn "initial position") (S "The" +:+ phrase position +:+ S "at the body's initial point")
xPos = dccWDS "xPos" (nounPhraseSent $ phrase xComp `sOf` phrase position) (S "The" +:+ phrase xComp `sOf` phrase position)
yPos = dccWDS "yPos" (nounPhraseSent $ phrase yComp `sOf` phrase position) (S "The" +:+ phrase yComp `sOf` phrase position)

ixPos = dccWDS "ixPos" (nounPhraseSent $ phrase xComp `sOf` phrase iPos) (S "The" +:+ phrase xComp `sOf` phrase iPos)
iyPos = dccWDS "iyPos" (nounPhraseSent $ phrase yComp `sOf` phrase iPos) (S "The" +:+ phrase yComp `sOf` phrase iPos)

fSpeed = dccWDS "fSpeed" (cn "final speed") (S "The" +:+ phrase speed +:+ S "at the body's final point")
iSpeed = dccWDS "iSpeed" (cn "initial speed") (S "The" +:+ phrase speed +:+ S "at the body's initial point")

fVel = dccWDS "fVel" (cn "final velocity") (S "The" +:+ phrase velocity +:+ S "at the body's final point")
iVel = dccWDS "iVel" (cn "initial velocity") (S "The" +:+ phrase velocity +:+ S "at the body's initial point")
xVel = dccWDS "xVel" (nounPhraseSent $ phrase xComp `sOf` phrase velocity) (S "The" +:+ phrase xComp `sOf` phrase velocity)
yVel = dccWDS "yVel" (nounPhraseSent $ phrase yComp `sOf` phrase velocity) (S "The" +:+ phrase yComp `sOf` phrase velocity)

ixVel = dccWDS "ixVel" (nounPhraseSent $ phrase xComp `sOf` phrase iVel) (S "The" +:+ phrase xComp `sOf` phrase iVel)
iyVel = dccWDS "iyVel" (nounPhraseSent $ phrase yComp `sOf` phrase iVel) (S "The" +:+ phrase yComp `sOf` phrase iVel)

xAccel = dccWDS "xScalAcc" (nounPhraseSent $ phrase xComp `sOf` phrase acceleration) (S "The" +:+ phrase xComp `sOf` phrase acceleration)
yAccel = dccWDS "yScalAcc" (nounPhraseSent $ phrase yComp `sOf` phrase acceleration) (S "The" +:+ phrase yComp `sOf` phrase acceleration)

constAccelV = dccWDS "constAccelV" (cn "constant acceleration vector") (S "The" +:+ phrase constAccel +:+ S "vector")
xConstAccel = dccWDS "xConstAccel" (nounPhraseSent $ phrase xComp `sOf` phrase constAccel) (S "The" +:+ phrase xComp `sOf` phrase constAccel)
yConstAccel = dccWDS "yConstAccel" (nounPhraseSent $ phrase yComp `sOf` phrase constAccel) (S "The" +:+ phrase yComp `sOf` phrase constAccel)

potEnergy = dccWDS "potEnergy" (cn "potential energy")
(S "The measure of the" +:+ phrase energy +:+
S "held by an object because of its" +:+ phrase position)
Expand All @@ -104,6 +145,8 @@ angVelo = dcc "angularVelocity"
angAccel = dcc "angularAcceleration"
(compoundPhrase' (angular ^. term) (acceleration ^. term))
"The rate of change of angular velocity"
constAccel = dcc "constantAcceleration"
(cn "constant acceleration") "A one-dimensional acceleration that is constant"
linDisp = dcc "linearDisplacement"
(compoundPhrase' (linear ^. term) (displacement ^. term))
"Movement in one direction along a single axis"
Expand All @@ -127,6 +170,7 @@ impulseV = dcc "impulseV" (cn "impulse (vector)")
"A force acting briefly on a body and producing a finite change of momentum in a given direction"
impulseS = dcc "impulseS" (cn "impulse (scalar)") "A force acting briefly on a body and producing a finite change of momentum"

gravity = dcc "gravity" (cn "gravity") "The force that attracts one physical body with mass to another."
gravitationalAccel = dcc "gravitationalAccel"
(cn "gravitational acceleration") "An expression used in physics to indicate the intensity of a gravitational field"
gravitationalConst = dcc "gravitationalConst" (cn "gravitational constant" )
Expand All @@ -152,8 +196,7 @@ damping = dcc "damping" (cn' "damping")
"An effect that tends to reduce the amplitude of vibrations"

cohesion = dccWDS "cohesion" (cn "cohesion") (S "An attractive" +:+
phrase force +:+ S "between adjacent particles that holds the matter" +:+
S "together.")
phrase force +:+. S "between adjacent particles that holds the matter together")

isotropy = dccWDS "isotropy" (cn "isotropy") (S "A condition where the" +:+
phrase value `sOf` S "a" +:+ phrase property +:+ S "is independent of" +:+
Expand Down
3 changes: 2 additions & 1 deletion code/drasil-data/Data/Drasil/People.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spencerSmith, henryFrankis, nKoothoor, dParnas, daAruliah, gWilson,
wlBeason, tlKohutek, jmBracci, qhQian, dyZhu, cfLee, grChen, dgFredlund,
jKrahn, dStolle, yCLi, ymChen, tltZhan, ssLing, pjCleall, pGuo,
mCampidelli, dmWiess, sPalmer, scottSmith, bKarchewski, rHuston,
hJosephs, nrMorgenstern, vePrice, samCrawford :: Person
hJosephs, nrMorgenstern, vePrice, samCrawford, rcHibbeler :: Person

pjAgerfalk = person "PJ" "Agerfalk"
daAruliah = personWM "D" ["A"] "Aruliah"
Expand All @@ -32,6 +32,7 @@ rGuy = personWM "Richard" ["T"] "Guy"
pGuo = person "Peijun" "Guo"
shdHaddock = personWM "Steven" ["H", "D"] "Haddock"
alex = person "Alex" "Halliwushka"
rcHibbeler = personWM' "R" ["C"] "Hibbeler"
rHuston = person "Ronald" "Huston"
nChueHong = personWM "Neil" ["P"] "Chue Hong"
kdHuff = personWM "Kathryn" ["D"] "Huff"
Expand Down
Loading