# MatterPy
MatterPy is a Python library that calculates various properties of matter, including charge, volume, density, instantaneous velocity and speed, mass, gravitational force, temperature, gas pressure, voltage, and more.
## To Install
```
pip install MatterPy
```
## To Use
After <strong>installation</strong>, make sure to create an instance of the object. For example:
```python
newtons_apple = matter()
```
After this, use the `set` functions to setup information. (These set methods take input, then use it to perform calculations, before storing it in a variable. This variable can be retrieved using the `get` methods that are shown later):
```python
setCharge(electrons)# Sets the charge of the object in Coulombs, based on the number of electrons provided as an argument.
setVolumeCube(length)# Sets the volume of the object to a cube with side length length.
setVolumeCone(radius, height)# Sets the volume of the object to a cone with base radius radius and height height.
setVolumeCylinder(radius, height)# Sets the volume of the object to a cylinder with base radius radius and height height.
setVolumeSphere(radius)# Sets the volume of the object to a sphere with radius radius.
setVolumeRectPrism(length, w, h)# Sets the volume of the object to a rectangular prism with length length, width w, and height h.
setDensity(mass) # Sets the density of the object, based on its mass and volume. Note that the volume must be set before calling this function.
setInstVelocity(x1, y1, z1, x2, y2, z2, t1, t2) # Sets the instantaneous velocity of the object, based on its position at two different times.
setInstSpeed(x1, y1, z1, x2, y2, z2, t1, t2) # Sets the instantaneous speed of the object, based on its position at two different times.
setMass(mass)# Sets the mass of the object.
setVelocity(velocity)# Sets the velocity of the object.
setHeight(height)# Sets the height of the object.
setVolts(voltage)# Sets the voltage of the object.
setLocalGravityForce(g)# Sets the local gravitational force.
setTemperature(temp)# Sets the temperature of the object.
setAtomicNumber(number) # Sets the atomic number of the element
setAtomicMass(mass) # sets the atomic mass of the element
setResistance(voltage, current) # Calculates and sets resistance of the element
setCapacitance(charge, voltage) # Calculates and sets capacitance of the object
setHalfLife(life) # sets the half life
setSphereSurfaceArea(radius) # surface area
setCylinderSurfaceArea(radius, height)# surface area
setConeSurfaceArea(radius, height)# surface area
setRectSurfaceArea(length, width, height)# surface area
setMomentum() # sets momentum (needs velocity and mass set first)
```
<br>
Here are some functions that you can use to retrieve information about your object:
```python
getCharge() # retrieves the charge of the object in Coulombs
getVolume() # retrieves the volume of the object in cubic meters
getDensity() # retrieves the density of the object in kilograms per cubic meter
getInstVelocity() # retrieves the instantaneous velocity of the object in meters per second
getInstSpeed() # retrieves the instantaneous speed of the object in meters per second
getLocalGravity() # retrieves the local gravitational force in meters per second squared
getGasPressure(gas_density) # retrieves the gas pressure in pascals, based on the gas density and temperature
getVolts() # retrieves the voltage of the object in volts
getKineticEnergy() # gets kinetic energy in joules. Must have set velocity and mass
getDecayRate() # gets decay rate of element
getNuclearBindingEnergy() # gives nuclear binding energy of element in joules
getResistance() # gives resistance of the object
getSurfaceArea() # gives the surface area. Must have previously set it in the set funcs
luminosity(radius) # luminosity of the object
getSchwarzschildFrequency() # astrophysics
getEscapeVelocity(radius) # astrophysics
getSchwarzschildRadius() # astrophysics
getCapacitance() # returns capcitance
getWeight() # returns force exerted by gravity in N
returnConsts() # returns physics constants
getMomentum() # returns momentum (momentum needs to be set first)
getElementName() # atomic number must be set first
```
An <b>error control system</b> has been programmed in case that the user tries to use a `get` function without setting the appropriate values. The function will return a set of instructions on what to do in order to use the func.
Raw data
{
"_id": null,
"home_page": "https://github.com/PyndyalaCoder/MatterPy",
"name": "MatterPy",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Siddhu Pendyala",
"author_email": "elcientifico.pendyala@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/14/0a/066253fb04361ef74c549a4ae487705637286472ace5f50182891e226437/MatterPy-0.0.5.tar.gz",
"platform": null,
"description": "# MatterPy\n\nMatterPy is a Python library that calculates various properties of matter, including charge, volume, density, instantaneous velocity and speed, mass, gravitational force, temperature, gas pressure, voltage, and more.\n\n## To Install\n\n```\n pip install MatterPy\n```\n\n## To Use\n\nAfter <strong>installation</strong>, make sure to create an instance of the object. For example:\n\n```python\n newtons_apple = matter()\n```\nAfter this, use the `set` functions to setup information. (These set methods take input, then use it to perform calculations, before storing it in a variable. This variable can be retrieved using the `get` methods that are shown later):\n\n```python\nsetCharge(electrons)# Sets the charge of the object in Coulombs, based on the number of electrons provided as an argument.\nsetVolumeCube(length)# Sets the volume of the object to a cube with side length length.\nsetVolumeCone(radius, height)# Sets the volume of the object to a cone with base radius radius and height height.\nsetVolumeCylinder(radius, height)# Sets the volume of the object to a cylinder with base radius radius and height height.\nsetVolumeSphere(radius)# Sets the volume of the object to a sphere with radius radius.\nsetVolumeRectPrism(length, w, h)# Sets the volume of the object to a rectangular prism with length length, width w, and height h.\nsetDensity(mass) # Sets the density of the object, based on its mass and volume. Note that the volume must be set before calling this function.\nsetInstVelocity(x1, y1, z1, x2, y2, z2, t1, t2) # Sets the instantaneous velocity of the object, based on its position at two different times.\nsetInstSpeed(x1, y1, z1, x2, y2, z2, t1, t2) # Sets the instantaneous speed of the object, based on its position at two different times.\nsetMass(mass)# Sets the mass of the object.\nsetVelocity(velocity)# Sets the velocity of the object.\nsetHeight(height)# Sets the height of the object.\nsetVolts(voltage)# Sets the voltage of the object.\nsetLocalGravityForce(g)# Sets the local gravitational force.\nsetTemperature(temp)# Sets the temperature of the object.\nsetAtomicNumber(number) # Sets the atomic number of the element\nsetAtomicMass(mass) # sets the atomic mass of the element\nsetResistance(voltage, current) # Calculates and sets resistance of the element\nsetCapacitance(charge, voltage) # Calculates and sets capacitance of the object\nsetHalfLife(life) # sets the half life\nsetSphereSurfaceArea(radius) # surface area\nsetCylinderSurfaceArea(radius, height)# surface area\nsetConeSurfaceArea(radius, height)# surface area\nsetRectSurfaceArea(length, width, height)# surface area\nsetMomentum() # sets momentum (needs velocity and mass set first)\n```\n\n<br>\nHere are some functions that you can use to retrieve information about your object:\n\n```python\ngetCharge() # retrieves the charge of the object in Coulombs\ngetVolume() # retrieves the volume of the object in cubic meters\ngetDensity() # retrieves the density of the object in kilograms per cubic meter\ngetInstVelocity() # retrieves the instantaneous velocity of the object in meters per second\ngetInstSpeed() # retrieves the instantaneous speed of the object in meters per second\ngetLocalGravity() # retrieves the local gravitational force in meters per second squared\ngetGasPressure(gas_density) # retrieves the gas pressure in pascals, based on the gas density and temperature\ngetVolts() # retrieves the voltage of the object in volts\ngetKineticEnergy() # gets kinetic energy in joules. Must have set velocity and mass\ngetDecayRate() # gets decay rate of element\ngetNuclearBindingEnergy() # gives nuclear binding energy of element in joules\ngetResistance() # gives resistance of the object\ngetSurfaceArea() # gives the surface area. Must have previously set it in the set funcs\nluminosity(radius) # luminosity of the object\ngetSchwarzschildFrequency() # astrophysics\ngetEscapeVelocity(radius) # astrophysics\ngetSchwarzschildRadius() # astrophysics\ngetCapacitance() # returns capcitance\ngetWeight() # returns force exerted by gravity in N\nreturnConsts() # returns physics constants\ngetMomentum() # returns momentum (momentum needs to be set first)\ngetElementName() # atomic number must be set first\n```\n\nAn <b>error control system</b> has been programmed in case that the user tries to use a `get` function without setting the appropriate values. The function will return a set of instructions on what to do in order to use the func.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python library that deals with properties of matter.",
"version": "0.0.5",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "256a68b0805a1cc7163acc01034747662ec29c15d9fbb01f3f81b8237d3ccc83",
"md5": "3652f6bd8225bd93246ae36ebc263d02",
"sha256": "bc53d3916cb6ec3a99b753b8339b366ab874663e451086c6c8cff6d2eec7e69a"
},
"downloads": -1,
"filename": "MatterPy-0.0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3652f6bd8225bd93246ae36ebc263d02",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 6904,
"upload_time": "2023-03-17T23:14:07",
"upload_time_iso_8601": "2023-03-17T23:14:07.485534Z",
"url": "https://files.pythonhosted.org/packages/25/6a/68b0805a1cc7163acc01034747662ec29c15d9fbb01f3f81b8237d3ccc83/MatterPy-0.0.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "140a066253fb04361ef74c549a4ae487705637286472ace5f50182891e226437",
"md5": "42ef48d23dc5a15af37444e9ef65a62d",
"sha256": "626a8d5213a3dfb623d914c94f7dc09b262b06c11677e600d1c05acc009091c9"
},
"downloads": -1,
"filename": "MatterPy-0.0.5.tar.gz",
"has_sig": false,
"md5_digest": "42ef48d23dc5a15af37444e9ef65a62d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6391,
"upload_time": "2023-03-17T23:14:08",
"upload_time_iso_8601": "2023-03-17T23:14:08.740528Z",
"url": "https://files.pythonhosted.org/packages/14/0a/066253fb04361ef74c549a4ae487705637286472ace5f50182891e226437/MatterPy-0.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-03-17 23:14:08",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "PyndyalaCoder",
"github_project": "MatterPy",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "matterpy"
}