CRAN
zFactor 0.1.7
Calculate the Compressibility Factor 'z' for Hydrocarbon Gases
Released Oct 23, 2017 by Alfonso R. Reyes
Dependencies
tibble 1.3.4 data.table 1.10.4-3 ggplot2 2.2.1 dplyr 0.7.4 tidyr 0.7.2 rootSolve 1.7
Computational algorithms to solve equations and find the compressibility factor `z` of hydrocarbon gases. Correlations available: Hall-Yarborough, Dranchuk-AbuKassem, Dranchuk-Purvis-Robinson, Beggs-Brill, Papp, Shell and an Artificial Neural Network correlation (Ann10) by Kamyab et al. The package uses the original Standing-Katz chart for statistical comparison and plotting. Applicable to sweet hydrocarbon gases for now.
Installation
Maven
This package can be included as a dependency from a Java or Scala project by including
the following your project's pom.xml
file.
Read more
about embedding Renjin in JVM-based projects.
<dependencies> <dependency> <groupId>org.renjin.cran</groupId> <artifactId>zFactor</artifactId> <version>0.1.7-b7</version> </dependency> </dependencies> <repositories> <repository> <id>bedatadriven</id> <name>bedatadriven public repo</name> <url>https://nexus.bedatadriven.com/content/groups/public/</url> </repository> </repositories>
Renjin CLI
If you're using Renjin from the command line, you load this library by invoking:
library('org.renjin.cran:zFactor')
Test Results
This package was last tested against Renjin 0.8.2561 on Dec 22, 2017.
- Ann10-examples
- Artificial_Neural_Networks_ANN10.16x13_matrix_stored_matches_Ann10_for_two_Ppr_and_Tpr_vectors
- Artificial_Neural_Networks_ANN10.1x2_matrix_of_Ppr_and_Tpr_work
- Artificial_Neural_Networks_ANN10.2x6_matrix_stored_matches_Ann10_for_two_Ppr_and_Tpr_vectors
- Artificial_Neural_Networks_ANN10.4x13_matrix_stored_matches_Ann10_for_two_Ppr_and_Tpr_vectors
- Artificial_Neural_Networks_ANN10.4x7_matrix_stored_matches_Ann10_for_two_Ppr_and_Tpr_vectors
- Artificial_Neural_Networks_ANN10.Tpr=1_1_and_Ppr=1_5_matches_z_value
- Artificial_Neural_Networks_ANN10.Tpr=2_and_Ppr=1_5_matches_z_value
- Artificial_Neural_Networks_ANN10.uni-element_vectors_of_Ppr_and_Tpr_work_E1
- Artificial_Neural_Networks_ANN10.uni-element_vectors_of_Ppr_and_Tpr_work_E2
- Beggs-Brill-examples
- DAK_genDataset7p4t_.DAK_genDataset7p4t__dimension_correct
- DPR_genDataset7p4t_.DPR_genDataset7p4t__dimension_correct_E1
- DPR_genDataset7p4t_.DPR_genDataset7p4t__dimension_correct_E2
- Dranchuk-AbouKassem-examples
- Dranchuk-Purvis-Robinson-examples
- HY_genDataset7p4t.HY_genDataset7p4t_dimension_correct
- HY_genDatasetDif_.HY_genDatasetDif__dimension_correct
- Hall-Yarborough-examples
- Papp-examples
- SK_genDataset7p4t.SK_genDataset7p4t_dimension_correct
- Shell-examples
- convertStringToVector-examples
- createTidyFromMatrix-examples
- genDatasetDif_.genDatasetDif__dimension_correct,_default_corr_=_HY
- getCurvesDigitized().match_digitized_curves_for_`all`
- getCurvesDigitized().match_digitized_curves_for_`common`
- getCurvesDigitized().match_digitized_curves_for_`hp`
- getCurvesDigitized().match_digitized_curves_for_`lp`
- getStandingKatzCurve().Tpr=1_05_matches_values_in_file
- getStandingKatzCurve().Tpr=1_5_matches_values_in_file
- getStandingKatzCurve().Tpr=2_4_matches_values_in_file
- getStandingKatzCurve().Tpr=3_0_matches_values_in_file
- getStandingKatzCurve-examples
- getStandingKatzData-examples
- getStandingKatzData.getStandingKatzData,_default_E1
- getStandingKatzData.getStandingKatzData,_default_E2
- getStandingKatzData.getStandingKatzData,_default_E3
- getStandingKatzMatrix-examples
- getStandingKatzMatrix.getStandingKatzMatrix,_4_Ppr_x_7_Tpr
- getStandingKatzMatrix.getStandingKatzMatrix,_6_Ppr_x_8_Tpr
- getStandingKatzMatrix.getStandingKatzMatrix_ppr,_tpr
- getStandingKatzPpr.getStandingKatzPpr_interval_is_`coarse`_E1
- getStandingKatzPpr.getStandingKatzPpr_interval_is_`coarse`_E2
- getStandingKatzPpr.getStandingKatzPpr_interval_is_`fine`
- getStandingKatzTpr-examples
- getStandingKatzTpr.getStandingKatzTpr,_range_for_Ppr_is_high_pressure
- getStandingKatzTpr.getStandingKatzTpr,_range_for_Ppr_is_low_pressure
- get_z_correlations-examples
- isValid_correlation.isValid_correlation_fails_when_provided_lowercase
- isValid_correlation.isValid_correlation_provided_with_blank
- isValid_correlation.isValid_correlation_provided_with_wrong_keyword
- listStandingKatzCurves().listStandingKatzCurves()_matches_files_'all
- listStandingKatzCurves().listStandingKatzCurves()_matches_files_'hp
- listStandingKatzCurves().listStandingKatzCurves()_matches_files_'lp
- listStandingKatzCurves-examples
- multiplotStandingKatz-examples
- testthat
- utils.get_z_correlations_return_function
- utils.get_z_correlations_return_long
- utils.get_z_correlations_return_short_E1
- utils.get_z_correlations_return_short_E2
- utils.get_z_correlations_return_wrong_parameter
- utils_R_-_convertStringToVector.convertStringToVector_with_alphanumeric_string
- utils_R_-_convertStringToVector.convertStringToVector_with_numeric_string
- z.plot.range-examples
- z_BeggsBrill.1x2_matrix_of_Ppr_and_Tpr_work
- z_BeggsBrill.BB_corr_matches_solution_of_16x7_Ppr,_Tpr_(all)_matrix
- z_BeggsBrill.BB_corr_matches_solution_of_2x6_Ppr,_Tpr_matrix
- z_BeggsBrill.BB_corr_matches_solution_of_4x13_Ppr,_Tpr_matrix
- z_BeggsBrill.BB_corr_matches_solution_of_4x7_Ppr,_Tpr_matrix
- z_BeggsBrill.BB_matches_z_at_Ppr=0_5_and_Tpr=1_3
- z_BeggsBrill.uni-element_vectors_of_Ppr_and_Tpr_work_E1
- z_BeggsBrill.uni-element_vectors_of_Ppr_and_Tpr_work_E2
- z_DranchukAbuKassem.1x2_matrix_of_Ppr_and_Tpr_work
- z_DranchukAbuKassem.DAK_calculates_z_for_only_one_point_at_Ppr=0_5_and_Tpr=1_3
- z_DranchukAbuKassem.DAK_corr_matches_a_single_z_value
- z_DranchukAbuKassem.DAK_corr_matches_solution_of_16x7_Ppr,_Tpr_(all)_matrix
- z_DranchukAbuKassem.DAK_corr_matches_solution_of_2x6_Ppr,_Tpr_matrix
- z_DranchukAbuKassem.DAK_corr_matches_solution_of_4x13_Ppr,_Tpr_matrix
- z_DranchukAbuKassem.DAK_corr_matches_solution_of_4x7_Ppr,_Tpr_matrix
- z_DranchukAbuKassem.DAK_works_with_7_Ppr_values_and_4_Tpr_using_sapply
- z_DranchukAbuKassem.uni-element_vectors_of_Ppr_and_Tpr_work_E1
- z_DranchukAbuKassem.uni-element_vectors_of_Ppr_and_Tpr_work_E2
- z_DranchukPurvisRobinson.1x2_matrix_of_Ppr_and_Tpr_work
- z_DranchukPurvisRobinson.DPR_corr_matches_solution_of_16x7_Ppr,_Tpr_(all)_matrix
- z_DranchukPurvisRobinson.DPR_corr_matches_solution_of_2x6_Ppr,_Tpr_matrix
- z_DranchukPurvisRobinson.DPR_corr_matches_solution_of_4x13_Ppr,_Tpr_matrix
- z_DranchukPurvisRobinson.DPR_corr_matches_solution_of_4x7_Ppr,_Tpr_matrix
- z_DranchukPurvisRobinson.DPR_matches_z_at_Ppr=0_5_and_Tpr=1_3
- z_DranchukPurvisRobinson.uni-element_vectors_of_Ppr_and_Tpr_work_E1
- z_DranchukPurvisRobinson.uni-element_vectors_of_Ppr_and_Tpr_work_E2
- z_HallYarborough.1x2_matrix_of_Ppr_and_Tpr_work
- z_HallYarborough.HY_corr_matches_a_single_z_value_at_Ppr=0_5_and_Tpr=1_3
- z_HallYarborough.HY_corr_matches_a_single_z_value_at_Ppr=1_5_and_Tpr=1_1
- z_HallYarborough.HY_corr_matches_solution_of_16x7_Ppr,_Tpr_(all)_matrix
- z_HallYarborough.HY_corr_matches_solution_of_2x6_Ppr,_Tpr_matrix
- z_HallYarborough.HY_corr_matches_solution_of_4x13_Ppr,_Tpr_matrix
- z_HallYarborough.HY_corr_matches_solution_of_4x7_Ppr,_Tpr_matrix
- z_HallYarborough.test_HY_with_4x7_Ppr_x_Tpr_using_sapply
- z_HallYarborough.uni-element_vectors_of_Ppr_and_Tpr_work_E1
- z_HallYarborough.uni-element_vectors_of_Ppr_and_Tpr_work_E2
- z_Shell.1x2_matrix_of_Ppr_and_Tpr_work
- z_Shell.SH_corr_matches_solution_of_16x7_Ppr,_Tpr_(all)_matrix
- z_Shell.SH_corr_matches_solution_of_2x6_Ppr,_Tpr_matrix
- z_Shell.SH_corr_matches_solution_of_4x13_Ppr,_Tpr_matrix
- z_Shell.SH_corr_matches_solution_of_4x7_Ppr,_Tpr_matrix
- z_Shell.SH_matches_z_at_Ppr=0_5_and_Tpr=1_3
- z_Shell.uni-element_vectors_of_Ppr_and_Tpr_work_E1
- z_Shell.uni-element_vectors_of_Ppr_and_Tpr_work_E2
- z_correlations.z_correlations_matches_the_short_names_of_the_correlations_E1
- z_correlations.z_correlations_matches_the_short_names_of_the_correlations_E10
- z_correlations.z_correlations_matches_the_short_names_of_the_correlations_E11
- z_correlations.z_correlations_matches_the_short_names_of_the_correlations_E12
- z_correlations.z_correlations_matches_the_short_names_of_the_correlations_E13
- z_correlations.z_correlations_matches_the_short_names_of_the_correlations_E14
- z_correlations.z_correlations_matches_the_short_names_of_the_correlations_E2
- z_correlations.z_correlations_matches_the_short_names_of_the_correlations_E3
- z_correlations.z_correlations_matches_the_short_names_of_the_correlations_E4
- z_correlations.z_correlations_matches_the_short_names_of_the_correlations_E5
- z_correlations.z_correlations_matches_the_short_names_of_the_correlations_E6
- z_correlations.z_correlations_matches_the_short_names_of_the_correlations_E7
- z_correlations.z_correlations_matches_the_short_names_of_the_correlations_E8
- z_correlations.z_correlations_matches_the_short_names_of_the_correlations_E9