egs_workflow_manager
¶
Classes:
EGS_workflowmanager
¶
EGS_workflowmanager(placements)
Workflow manager for EGS calculations
Parameters:
-
(placements¶DataFrame) –placements, contains at least "lat", "lon" columns in EPSG:4326
Methods:
-
GringartenMethodFixeVdot–Calculates the Gringarten solution for a given fracture configuration
-
GringartenMethodFixedT–[summary]
-
VolumeMethod–Calculate the enthalpy from the temperature
-
calculateCosts–Calculate the CAPEX cost for the plant
-
calculatePumpLosses–[summary]
-
getOptDepth–Gets the optimal depth value based on the lowest LCOE
-
getValuesAtOptDepth–[summary]
-
loadData–Loads the variables from source. Must be a NC file. Cannot be depth depending-
-
loadDataAllDepths–Loads all variables as an array depending on its depth
-
saveOutput–Saved to nc4 or shape file or csv to savepath
-
volumeMethodSingular–Calculate the enthalpy from the temperature
Source code in reskit/geothermal/workflows/egs_workflow_manager.py
GringartenMethodFixeVdot
¶
Calculates the Gringarten solution for a given fracture configuration
Source code in reskit/geothermal/workflows/egs_workflow_manager.py
GringartenMethodFixedT
¶
[summary]
Source code in reskit/geothermal/workflows/egs_workflow_manager.py
VolumeMethod
¶
Calculate the enthalpy from the temperature
Source code in reskit/geothermal/workflows/egs_workflow_manager.py
__calulateRockVolumeShare
¶
Calculates the share of the placement reservoir to the discretized volume from the input data
Parameters:
-
(reservoirSize¶float) –Volume of the plant specific reservoir in m^3, by default 1E9 m^3
Source code in reskit/geothermal/workflows/egs_workflow_manager.py
calculateCosts
¶
Calculate the CAPEX cost for the plant
Source code in reskit/geothermal/workflows/egs_workflow_manager.py
calculatePumpLosses
¶
calculatePumpLosses(method='default', techMethod=None)
[summary]
Parameters:
-
(method¶str, default:'default') –[description], by default 'default'
-
(techMethod¶[type], default:None) –[description], by default None
Source code in reskit/geothermal/workflows/egs_workflow_manager.py
getOptDepth
¶
Gets the optimal depth value based on the lowest LCOE
Source code in reskit/geothermal/workflows/egs_workflow_manager.py
getValuesAtOptDepth
¶
[summary]
Source code in reskit/geothermal/workflows/egs_workflow_manager.py
loadData
¶
Loads the variables from source. Must be a NC file. Cannot be depth depending-
Parameters:
-
(vars¶list) –List of varnames to load
-
(source¶str) –path to *.nc file
-
(newVarNames¶dict) –list of new Variable names, by default None
Source code in reskit/geothermal/workflows/egs_workflow_manager.py
loadDataAllDepths
¶
loadDataAllDepths(vars, source)
Loads all variables as an array depending on its depth
Parameters:
-
(vars¶list) –list of variables, eg: ['Global_EGS_HeatSust',' Global_EGS_HeatTech', 'Global_EGS_PowerSust', 'Global_EGS_PowerTech']
-
(sourceEGSpotentials¶str) –path to the location of the input data
Returns:
-
updates self.sim_data–adds the variables to the self.sim_data container as np.ndarray(dtype=np.float66)
Source code in reskit/geothermal/workflows/egs_workflow_manager.py
saveOutput
¶
Saved to nc4 or shape file or csv to savepath
Parameters:
-
(savepath¶str, default:None) –String to a specific file path (folder + filename). Can be shape, nc4, or csv. If None, printing
-
(deepsave¶bool, default:False) –If True, saves more variables. Defaults to False
Source code in reskit/geothermal/workflows/egs_workflow_manager.py
733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 | |
volumeMethodSingular
staticmethod
¶
volumeMethodSingular(
reservoir_size_m3,
dT_drawdown,
recovery_factor,
temperature,
surface_temperature=10,
lifetime_a=30,
depth=3000,
n_wells=2,
T_inj=80,
)
Calculate the enthalpy from the temperature
Source code in reskit/geothermal/workflows/egs_workflow_manager.py
891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 | |