Hi,
i have attached the code below with eclipse implementation for grdecl file. There is an error while running the code. Could you please have a look over the code and let me know where the errors are?
SIMULATION
SIMULATION_TYPE SUBSURFACE
PROCESS_MODELS
SUBSURFACE_FLOW flow
MODE MPHASE
/
/
END
SUBSURFACE
#=========================== numerical methods ================================
NUMERICAL_METHODS FLOW
TIMESTEPPER
TS_ACCELERATION 8
/
NEWTON_SOLVER
ATOL 1D-12
RTOL 1D-8
STOL 1D-30
ITOL 1D-7
MAXIMUM_NUMBER_OF_ITERATIONS 25
/
END
#=========================== discretization ===================================
GRID
TYPE ECLIPSE </home/user/pflotran/regression_tests/shortcourse/co2 (copy)/SAMPLE.grdecl>
GRAVITY 0 0 9.81099
END
#==========================chemistry ===================================
CHEMISTRY# =========#(Specifies geochemistry details for multicomponent transport.)
PRIMARY_SPECIES#====#(List of primary aqueous or basis species for which concentrations will be solved.)
H2O
H+
CO2(aq)
/
SECONDARY_SPECIES#=====#(List of secondary aqueous species or complexes.)
OH-
HCO3-
CO3--
/
ACTIVE_GAS_SPECIES
CO2(g)
/
PASSIVE_GAS_SPECIES
CO2(g)
/
LOG_FORMULATION #=====(Flag for solving Newton-Raphson equations with derivatives computed with respect to the logarithm (base 10) of the concentrations.)
UPDATE_POROSITY
UPDATE_PERMEABILITY
!ACTIVITY_COEFFICIENTS#==================(Activity coefficients are printed for primary species.)
MOLAL
CO2_DATABASE ../../../database/co2data0.dat
!LOG_FORMULATION
!ACTIVITY_COEFFICIENTS NEWTON NEWTON_ITERATION#============(iterative Newton-based updated (iterates until convergence tolerance is satisfied))
OUTPUT
TOTAL#=====(Total aqueous component concentration of each species is printed.)
ALL #=====(All primary species, mineral species, sorbed species (i.e. colloids, surface complexes, surface sites if applicable) and pH (if applicable) are printed in output.)
PH
HCO3-
H+
SECONDARY_SPECIES
CO2(aq)
OH-
CO3--
GASES
MINERALS
!PH
KD
COLLOIDS
TOTAL
TOTAL_SORBED
TOTAL_SORBED_MOBILE
FREE_ION
ACTIVITY_COEFFICIENTS
MOLARITY
MOLALITY
AGE
!SITE_DENSITY
PRINT_PRIMAL_GRID
FORMAT HDF5
/
END
#=======================constraint===============================
CONSTRAINT formation
CONCENTRATIONS
#species_name concentration constraint_type constraint_species
!Tracer 100.0 T
!HCO3- 0.00433 T !CO2(g)
H+ 5.6 pH
CO2(aq) 0.001 T G CO2(g)
H2O 52.02 T
!O2(aq) 0.001 T
/
/
CONSTRAINT injection
CONCENTRATIONS
#species_name concentration constraint_type constraint_species
!Tracer 100.0 T
!HCO3- 0.00433 T !CO2(g)
H+ 5.6 pH
CO2(aq) 0.001 T G CO2(g)
H2O 52.02 T
!O2(aq) 0.001 T
/
/
#=========================== times ============================================
TIME
FINAL_TIME 1.d2 y
INITIAL_TIMESTEP_SIZE 1.d-8 y
MAXIMUM_TIMESTEP_SIZE 2.5d1 y
#MAXIMUM_TIMESTEP_SIZE 2.d0 y at 50. y
#MAXIMUM_TIMESTEP_SIZE 25.d0 y at 1000. y
/
#=========================== output options ===================================
OUTPUT
MASS_BALANCE
TIMES y 1.e-6 0.5 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 12. 14. 16. 18. 19. 19.25 19.5 19.75 20. \
20.25 20.5 20.75 21. 22. 24. 26. 28. 30. 35. 40. 45. 50. 60. 70. 80. 90. 100.
#FORMAT TECPLOT POINT
FILE </home/user/pflotran/regression_tests/shortcourse/co2 (copy)/SAMPLE.grdecl>
END
REGION top
FILE </home/user/pflotran/regression_tests/shortcourse/co2 (copy)/SAMPLE.grdecl>
FACE TOP
END
REGION bottom
FILE </home/user/pflotran/regression_tests/shortcourse/co2 (copy)/SAMPLE.grdecl>
FACE BOTTOM
END
REGION east
FILE </home/user/pflotran/regression_tests/shortcourse/co2 (copy)/SAMPLE.grdecl>
FACE EAST
END
REGION west
FILE </home/user/pflotran/regression_tests/shortcourse/co2 (copy)/SAMPLE.grdecl>
FACE WEST
END
REGION north
FILE </home/user/pflotran/regression_tests/shortcourse/co2 (copy)/SAMPLE.grdecl>
FACE NORTH
END
REGION south
FILE </home/user/pflotran/regression_tests/shortcourse/co2 (copy)/SAMPLE.grdecl>
FACE SOUTH
END
REGION formation
FILE </home/user/pflotran/regression_tests/shortcourse/co2 (copy)/SAMPLE.grdecl>
END
REGION caprock
FILE </home/user/pflotran/regression_tests/shortcourse/co2 (copy)/SAMPLE.grdecl>
END
REGION overburden
FILE </home/user/pflotran/regression_tests/shortcourse/co2 (copy)/SAMPLE.grdecl>
END
REGION well
FILE </home/user/pflotran/regression_tests/shortcourse/co2 (copy)/SAMPLE.grdecl>
END
REGION obs
FILE </home/user/pflotran/regression_tests/shortcourse/co2 (copy)/SAMPLE.grdecl>
END
REGION basement
FILE </home/user/pflotran/regression_tests/shortcourse/co2 (copy)/SAMPLE.grdecl>
END
#=========================== observation points ===============================
OBSERVATION obs
REGION obs
AT_CELL_CENTER
VELOCITY
END
#=========================== flow conditions ==================================
FLOW_CONDITION initial
UNITS Pa,C,M,yr
TYPE
LIQUID_PRESSURE HYDROSTATIC
TEMPERATURE DIRICHLET
CONCENTRATION DIRICHLET
ENTHALPY DIRICHLET
/
DATUM 0.d0 0.d0 1000.d0
GRADIENT
TEMPERATURE 0.d0 0.d0 -0.025d0
/
PRESSURE 77.0D5 77.0D5
TEMPERATURE 75.
CONCENTRATION 0.d0
ENTHALPY 0.d0 0.d0
/
FLOW_CONDITION src
#UNITS Pa,C,M,yr
SYNC_TIMESTEP_WITH_UPDATE
TYPE
RATE mass_rate
LIQUID_PRESSURE DIRICHLET
TEMPERATURE DIRICHLET
CONCENTRATION DIRICHLET
ENTHALPY DIRICHLET
/
RATE LIST
TIME_UNITS y
DATA_UNITS kg/s
0. 0. 10.d0
20. 0. 0.
/
LIQUID_PRESSURE 2.d7 2.d7
TEMPERATURE 75.d0
CONCENTRATION 1.d-16
ENTHALPY 0.d0 0.d0
/
#=========================== condition couplers ===============================
# initial condition
INITIAL_CONDITION
FLOW_CONDITION initial
REGION all
END
# east boundary condition
BOUNDARY_CONDITION east
FLOW_CONDITION initial
REGION east
END
# west boundary condition
BOUNDARY_CONDITION west
FLOW_CONDITION initial
REGION west
END
# north boundary condition
BOUNDARY_CONDITION north
FLOW_CONDITION initial
REGION north
END
# south boundary condition
BOUNDARY_CONDITION south
FLOW_CONDITION initial
REGION south
END
# top boundary condition
BOUNDARY_CONDITION top
FLOW_CONDITION initial
REGION top
END
# bottom boundary condition
BOUNDARY_CONDITION bottom
FLOW_CONDITION initial
REGION bottom
END
SOURCE_SINK src
FLOW_CONDITION src
REGION well
END
#=========================== stratigraphy couplers ============================
STRATA
REGION formation
MATERIAL formation
END
STRATA
REGION caprock
MATERIAL caprock
END
STRATA
REGION overburden
MATERIAL overburden
END
STRATA
REGION basement
MATERIAL basement
END
END_SUBSURFACE