ansys-units 0.6.dev0__tar.gz → 0.7.dev0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/PKG-INFO +1 -1
- {ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/pyproject.toml +1 -1
- {ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/src/ansys/units/quantity_dimensions.py +128 -0
- {ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/LICENSE +0 -0
- {ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/README.rst +0 -0
- {ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/src/ansys/units/__init__.py +0 -0
- {ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/src/ansys/units/_constants.py +0 -0
- {ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/src/ansys/units/_version.py +0 -0
- {ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/src/ansys/units/base_dimensions.py +0 -0
- {ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/src/ansys/units/cfg.yaml +0 -0
- {ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/src/ansys/units/dimensions.py +0 -0
- {ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/src/ansys/units/docs/.gitignore +0 -0
- {ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/src/ansys/units/quantity.py +0 -0
- {ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/src/ansys/units/quantity_tables/bt_table.yaml +0 -0
- {ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/src/ansys/units/quantity_tables/cgs_table.yaml +0 -0
- {ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/src/ansys/units/quantity_tables/si_table.yaml +0 -0
- {ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/src/ansys/units/systems.py +0 -0
- {ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/src/ansys/units/unit.py +0 -0
- {ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/src/ansys/units/unit_registry.py +0 -0
- {ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/src/ansys/units/variable_descriptor/__init__.py +0 -0
- {ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/src/ansys/units/variable_descriptor/strategy.py +0 -0
- {ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/src/ansys/units/variable_descriptor/variable_descriptor.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ansys-units
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.dev0
|
|
4
4
|
Summary: Pythonic interface for units, unit systems, and unit conversions.
|
|
5
5
|
Author-email: "ANSYS, Inc." <pyansys.core@ansys.com>
|
|
6
6
|
Maintainer-email: "ANSYS, Inc." <pyansys.core@ansys.com>
|
|
@@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi"
|
|
|
5
5
|
[project]
|
|
6
6
|
# Check https://flit.readthedocs.io/en/latest/pyproject_toml.html for all available sections
|
|
7
7
|
name = "ansys-units"
|
|
8
|
-
version = "0.
|
|
8
|
+
version = "0.7.dev0"
|
|
9
9
|
description = "Pythonic interface for units, unit systems, and unit conversions."
|
|
10
10
|
readme = "README.rst"
|
|
11
11
|
requires-python = ">=3.9,<4"
|
|
@@ -249,6 +249,134 @@ class QuantityDimensions:
|
|
|
249
249
|
# Coordinates
|
|
250
250
|
POSITION = LENGTH
|
|
251
251
|
|
|
252
|
+
# --- Material Properties ---
|
|
253
|
+
# https://en.wikipedia.org/wiki/List_of_materials_properties
|
|
254
|
+
|
|
255
|
+
# Acoustical properties
|
|
256
|
+
ACOUSTICAL_ABSORPTION = Dimensions() # dimensionless (fraction or dB)
|
|
257
|
+
SPEED_OF_SOUND = VELOCITY
|
|
258
|
+
SOUND_REFLECTION = Dimensions() # dimensionless (coefficient)
|
|
259
|
+
SOUND_TRANSFER = Dimensions() # dimensionless (coefficient)
|
|
260
|
+
THIRD_ORDER_ELASTICITY = (
|
|
261
|
+
STRESS # same as stress (Pa), but higher order tensors in practice
|
|
262
|
+
)
|
|
263
|
+
|
|
264
|
+
# Atomic properties
|
|
265
|
+
ATOMIC_MASS = MASS
|
|
266
|
+
ATOMIC_NUMBER = Dimensions() # dimensionless (count)
|
|
267
|
+
RELATIVE_ATOMIC_MASS = Dimensions() # dimensionless (ratio)
|
|
268
|
+
STANDARD_ATOMIC_WEIGHT = Dimensions() # dimensionless (ratio)
|
|
269
|
+
|
|
270
|
+
# Chemical properties
|
|
271
|
+
CORROSION_RESISTANCE = Dimensions() # dimensionless (qualitative)
|
|
272
|
+
HYGROSCOPY = Dimensions() # dimensionless (qualitative)
|
|
273
|
+
PH = Dimensions() # dimensionless (logarithmic)
|
|
274
|
+
REACTIVITY = Dimensions() # dimensionless (qualitative)
|
|
275
|
+
SPECIFIC_INTERNAL_SURFACE_AREA = LENGTH**-1 # m^-1
|
|
276
|
+
SURFACE_ENERGY = ENERGY / AREA # J/m^2
|
|
277
|
+
SURFACE_TENSION = FORCE / LENGTH # N/m
|
|
278
|
+
|
|
279
|
+
# Electrical properties
|
|
280
|
+
CAPACITANCE = ELECTRICAL_CAPACITANCE # F = s^4·A^2/(kg·m^2)
|
|
281
|
+
DIELECTRIC_CONSTANT = Dimensions() # dimensionless (relative permittivity)
|
|
282
|
+
DIELECTRIC_STRENGTH = ELECTRICAL_POTENTIAL / LENGTH # V/m
|
|
283
|
+
ELECTRICAL_RESISTIVITY = ELECTRICAL_RESISTANCE * LENGTH # Ω·m
|
|
284
|
+
ELECTRICAL_CONDUCTIVITY = ELECTRICAL_RESISTANCE**-1 / LENGTH # S/m
|
|
285
|
+
ELECTRIC_SUSCEPTIBILITY = Dimensions() # dimensionless
|
|
286
|
+
ELECTROCALORIC_COEFFICIENT = TEMPERATURE / ELECTRICAL_POTENTIAL # K/V
|
|
287
|
+
ELECTROSTRICTION = Dimensions() # dimensionless (strain per E^2)
|
|
288
|
+
MAGNETOELECTRIC_POLARIZABILITY = ELECTRICAL_POTENTIAL / (
|
|
289
|
+
LENGTH * MAGNETIC_FLUX
|
|
290
|
+
) # V/(m·Wb)
|
|
291
|
+
NERNST_COEFFICIENT = ELECTRICAL_POTENTIAL / (
|
|
292
|
+
TEMPERATURE * MAGNETIC_INDUCTION
|
|
293
|
+
) # V/(K·T)
|
|
294
|
+
PERMITTIVITY = ELECTRICAL_CAPACITANCE / LENGTH # F/m
|
|
295
|
+
PIEZOELECTRIC_CONSTANTS = ELECTRICAL_POTENTIAL / LENGTH / STRESS # V/(m·Pa)
|
|
296
|
+
PYROELECTRICITY = CURRENT / (AREA * TEMPERATURE) # A/(m^2·K)
|
|
297
|
+
SEEBECK_COEFFICIENT = ELECTRICAL_POTENTIAL / TEMPERATURE # V/K
|
|
298
|
+
|
|
299
|
+
# Magnetic properties
|
|
300
|
+
CURIE_TEMPERATURE = TEMPERATURE
|
|
301
|
+
DIAMAGNETISM = Dimensions() # dimensionless (susceptibility)
|
|
302
|
+
HALL_COEFFICIENT = LENGTH**3 / (CURRENT * TIME) # m^3/(A·s)
|
|
303
|
+
HYSTERESIS = Dimensions() # dimensionless (qualitative)
|
|
304
|
+
MAGNETOSTRICTION = Dimensions() # dimensionless (strain)
|
|
305
|
+
MAGNETOCALORIC_COEFFICIENT = TEMPERATURE / MAGNETIC_INDUCTION # K/T
|
|
306
|
+
MAGNETOTHERMOELECTRIC_POWER = ELECTRICAL_POTENTIAL / (
|
|
307
|
+
TEMPERATURE * MAGNETIC_INDUCTION
|
|
308
|
+
) # V/(K·T)
|
|
309
|
+
MAGNETORESISTANCE = Dimensions() # dimensionless (ratio)
|
|
310
|
+
MAXIMUM_ENERGY_PRODUCT = ENERGY / VOLUME # J/m^3
|
|
311
|
+
PERMEABILITY = MAGNETIC_PERMEABILITY # H/m
|
|
312
|
+
PIEZOMAGNETISM = MAGNETIC_INDUCTION / STRESS # T/Pa
|
|
313
|
+
PYROMAGNETIC_COEFFICIENT = MAGNETIC_INDUCTION / TEMPERATURE # T/K
|
|
314
|
+
SPIN_HALL_EFFECT = ELECTRICAL_RESISTANCE # Ω (spin Hall angle is dimensionless)
|
|
315
|
+
|
|
316
|
+
# Mechanical properties
|
|
317
|
+
BULK_MODULUS = PRESSURE # Pa
|
|
318
|
+
COEFFICIENT_OF_RESTITUTION = Dimensions() # dimensionless
|
|
319
|
+
COMPRESSIVE_STRENGTH = STRESS # Pa
|
|
320
|
+
CREEP = STRAIN_RATE # 1/s
|
|
321
|
+
DUCTILITY = Dimensions() # dimensionless (percent elongation)
|
|
322
|
+
DURABILITY = Dimensions() # dimensionless (qualitative)
|
|
323
|
+
ELASTICITY = Dimensions() # dimensionless (qualitative)
|
|
324
|
+
FATIGUE_LIMIT = STRESS # Pa
|
|
325
|
+
FLEXURAL_MODULUS = STRESS # Pa
|
|
326
|
+
FLEXURAL_STRENGTH = STRESS # Pa
|
|
327
|
+
FRACTURE_TOUGHNESS = ENERGY / AREA # J/m^2
|
|
328
|
+
FRICTION_COEFFICIENT = Dimensions() # dimensionless
|
|
329
|
+
HARDNESS = STRESS # Pa (approximate)
|
|
330
|
+
MALLEABILITY = Dimensions() # dimensionless (qualitative)
|
|
331
|
+
MASS_DIFFUSIVITY = AREA / TIME # m^2/s
|
|
332
|
+
PLASTICITY = Dimensions() # dimensionless (qualitative)
|
|
333
|
+
POISSON_RATIO = Dimensions() # dimensionless
|
|
334
|
+
RESILIENCE = STRESS # Pa (energy per volume)
|
|
335
|
+
SHEAR_MODULUS = STRESS # Pa
|
|
336
|
+
SHEAR_STRENGTH = STRESS # Pa
|
|
337
|
+
SLIP = Dimensions() # dimensionless (qualitative)
|
|
338
|
+
SPECIFIC_MODULUS = STRESS / DENSITY # m^2/s^2
|
|
339
|
+
SPECIFIC_STRENGTH = ENERGY / MASS # J/kg
|
|
340
|
+
SPECIFIC_WEIGHT = FORCE / VOLUME # N/m^3
|
|
341
|
+
SURFACE_ROUGHNESS = LENGTH # m
|
|
342
|
+
TENSILE_STRENGTH = STRESS # Pa
|
|
343
|
+
TOUGHNESS = ENERGY / VOLUME # J/m^3
|
|
344
|
+
VISCOSITY = DYNAMIC_VISCOSITY # Pa·s
|
|
345
|
+
YIELD_STRENGTH = STRESS # Pa
|
|
346
|
+
YOUNG_MODULUS = STRESS # Pa
|
|
347
|
+
|
|
348
|
+
# Optical properties
|
|
349
|
+
ABSORBANCE = Dimensions() # dimensionless (logarithmic)
|
|
350
|
+
BIREFRINGENCE = Dimensions() # dimensionless (difference in refractive index)
|
|
351
|
+
COLOR = Dimensions() # dimensionless (qualitative)
|
|
352
|
+
ELECTRO_OPTIC_EFFECT = (
|
|
353
|
+
Dimensions()
|
|
354
|
+
) # dimensionless (change in refractive index per V/m)
|
|
355
|
+
LUMINOSITY = LUMINOUS_FLUX # lm
|
|
356
|
+
OPTICAL_ACTIVITY = LENGTH / MASS # m/g (or rad/(g·cm^2))
|
|
357
|
+
PHOTOELASTICITY = STRESS**-1 # 1/Pa
|
|
358
|
+
PHOTOSENSITIVITY = Dimensions() # dimensionless (qualitative)
|
|
359
|
+
REFLECTIVITY = Dimensions() # dimensionless (fraction)
|
|
360
|
+
REFRACTIVE_INDEX = Dimensions() # dimensionless
|
|
361
|
+
SCATTERING = Dimensions() # dimensionless (cross-section per volume)
|
|
362
|
+
TRANSMITTANCE = Dimensions() # dimensionless (fraction)
|
|
363
|
+
|
|
364
|
+
# Radiological properties
|
|
365
|
+
ATTENUATION_COEFFICIENT = LENGTH**-1 # m^-1
|
|
366
|
+
HALF_LIFE = TIME # s
|
|
367
|
+
NEUTRON_CROSS_SECTION = LENGTH**2 # m^2
|
|
368
|
+
SPECIFIC_ACTIVITY = (MASS * TIME) ** -1 # Bq/kg
|
|
369
|
+
|
|
370
|
+
# Thermal properties
|
|
371
|
+
EMISSIVITY = Dimensions() # dimensionless
|
|
372
|
+
HEAT_OF_VAPORIZATION = ENERGY / MASS # J/kg
|
|
373
|
+
MELTING_POINT = TEMPERATURE # K
|
|
374
|
+
SPECIFIC_HEAT_CAPACITY = SPECIFIC_HEAT_CAPACITY # J/(kg·K)
|
|
375
|
+
THERMAL_CONDUCTIVITY = THERMAL_CONDUCTIVITY # W/(m·K)
|
|
376
|
+
THERMAL_DIFFUSIVITY = AREA / TIME # m^2/s
|
|
377
|
+
THERMAL_EXPANSION_COEFFICIENT = TEMPERATURE**-1 # 1/K
|
|
378
|
+
VAPOR_PRESSURE = PRESSURE # Pa
|
|
379
|
+
|
|
252
380
|
# List of vector quantities. The only impact
|
|
253
381
|
# of not adding a vector quantity here is that
|
|
254
382
|
# the code will not autogenerate attributes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/src/ansys/units/quantity_tables/cgs_table.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/src/ansys/units/variable_descriptor/__init__.py
RENAMED
|
File without changes
|
{ansys_units-0.6.dev0 → ansys_units-0.7.dev0}/src/ansys/units/variable_descriptor/strategy.py
RENAMED
|
File without changes
|
|
File without changes
|