-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
79b381b
commit eb832ef
Showing
7 changed files
with
153 additions
and
1 deletion.
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
82 changes: 82 additions & 0 deletions
82
...tring/test_generate_case_description_docstring_PvtModelConstantPropertiesDescription_.txt
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,82 @@ | ||
.. rubric:: Definitions | ||
|
||
.. tab:: CaseDescription | ||
|
||
.. parsed-literal:: | ||
|
||
class PvtModelConstantPropertiesDescription | ||
gas_density: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(1.0, 'kg/m3', 'density') | ||
oil_density: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(1000.0, 'kg/m3', 'density') | ||
water_density: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(1000.0, 'kg/m3', 'density') | ||
gas_viscosity: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(5e-06, 'Pa.s', 'mass per time per length') | ||
oil_viscosity: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(0.05, 'Pa.s', 'mass per time per length') | ||
water_viscosity: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(0.05, 'Pa.s', 'mass per time per length') | ||
gas_specific_heat: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(1010.0, 'J/kg.K', 'specific heat capacity') | ||
oil_specific_heat: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(4181.3, 'J/kg.K', 'specific heat capacity') | ||
water_specific_heat: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(4181.3, 'J/kg.K', 'specific heat capacity') | ||
gas_thermal_conductivity: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(0.024, 'W/m.K', 'thermal conductivity') | ||
oil_thermal_conductivity: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(0.591, 'W/m.K', 'thermal conductivity') | ||
water_thermal_conductivity: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(0.591, 'W/m.K', 'thermal conductivity') | ||
gas_oil_surface_tension: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(0.07197, 'N/m', 'force per length') | ||
gas_water_surface_tension: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(0.07197, 'N/m', 'force per length') | ||
oil_water_surface_tension: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(0.07197, 'N/m', 'force per length') | ||
gas_specific_enthalpy: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(2260000.0, 'J/kg', 'specific energy') | ||
oil_specific_enthalpy: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(104860.0, 'J/kg', 'specific energy') | ||
has_water: bool = False | ||
|
||
.. tab:: Schema | ||
|
||
.. parsed-literal:: | ||
|
||
gas_density: # optional | ||
value: number | ||
unit: string | ||
oil_density: # optional | ||
value: number | ||
unit: string | ||
water_density: # optional | ||
value: number | ||
unit: string | ||
gas_viscosity: # optional | ||
value: number | ||
unit: string | ||
oil_viscosity: # optional | ||
value: number | ||
unit: string | ||
water_viscosity: # optional | ||
value: number | ||
unit: string | ||
gas_specific_heat: # optional | ||
value: number | ||
unit: string | ||
oil_specific_heat: # optional | ||
value: number | ||
unit: string | ||
water_specific_heat: # optional | ||
value: number | ||
unit: string | ||
gas_thermal_conductivity: # optional | ||
value: number | ||
unit: string | ||
oil_thermal_conductivity: # optional | ||
value: number | ||
unit: string | ||
water_thermal_conductivity: # optional | ||
value: number | ||
unit: string | ||
gas_oil_surface_tension: # optional | ||
value: number | ||
unit: string | ||
gas_water_surface_tension: # optional | ||
value: number | ||
unit: string | ||
oil_water_surface_tension: # optional | ||
value: number | ||
unit: string | ||
gas_specific_enthalpy: # optional | ||
value: number | ||
unit: string | ||
oil_specific_enthalpy: # optional | ||
value: number | ||
unit: string | ||
has_water: boolean # optional |
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
18 changes: 18 additions & 0 deletions
18
tests/alfacase/test_generate_list_of_units/test_generate_list_of_units_force_per_length_.txt
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,18 @@ | ||
.. admonition:: Available units for category 'force per length' | ||
:class: dropdown | ||
|
||
:"dyne/cm": dynes/centimetre | ||
:"kgf/cm": kilograms force/centimetre | ||
:"kgf/m": kilogram force per meter | ||
:"kN/m": kilonewtons/metre | ||
:"lbf/100ft": pounds force per hundred foot | ||
:"lbf/30m": pounds force per thirty meters | ||
:"lbf/ft": pounds force per foot | ||
:"lbf/in": pounds force/inch | ||
:"mN/km": millinewtons/kilometre | ||
:"mN/m": millinewtons/metre | ||
:"N/30m": newton per thirty meters | ||
:"N/m": newtons/metre | ||
:"pdl/cm": poundals/centimetre | ||
:"tonfUK/ft": UK tons force/foot | ||
:"tonfUS/ft": US tons force/foot |
24 changes: 24 additions & 0 deletions
24
tests/alfacase/test_generate_list_of_units/test_generate_list_of_units_specific_energy_.txt
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,24 @@ | ||
.. admonition:: Available units for category 'specific energy' | ||
:class: dropdown | ||
|
||
:"Btu/lbm": British thermal units/pound mass | ||
:"cal/g": calories/gram | ||
:"cal/kg": calories/kilogram | ||
:"cal/lbm": calories/pound mass | ||
:"erg/g": ergs/gram | ||
:"erg/kg": ergs/kilogram | ||
:"ft.lbf/lbm": foot pounds force/pound mass | ||
:"hp.hr/lbm": horsepower hours/pound mass | ||
:"J/g": joules/gram | ||
:"J/kg": joules/kilogram | ||
:"kcal/g": kilocalories/gram | ||
:"kcal/kg": kilocalories/kilogram | ||
:"kJ/kg": kilojoule/kilogram | ||
:"kW.h/kg": kilowatt hours/kilogram | ||
:"kW.h/t": kilowatt hours/tonne | ||
:"kW.h/tonUK": kilowatt hours/U.S. ton | ||
:"kW.h/tonUS": kilowatt hours/U.S. ton | ||
:"lbf.ft/lbm": foot pounds force/pound mass | ||
:"MJ/kg": megajoules/kilogram | ||
:"MW.h/kg": megawatt hours/kilogram | ||
:"therm/lbm": therms/pound mass |