4965 Commits

Author SHA1 Message Date
David L Parkhurst
4ddc83581c Added equilibrium_phase keyword to Phreeqc.cpp constructor
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@4116 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-02-23 19:32:06 +00:00
Scott R Charlton
5a2616d604 Rearranging IPhreeqc
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@4111 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-02-23 05:09:09 +00:00
Scott R Charlton
71d54c4dee Rearranging IPhreeqc
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@4110 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-02-23 05:06:43 +00:00
Scott R Charlton
41a7d26c56 Rearranging IPhreeqc
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@4109 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-02-23 05:06:14 +00:00
Scott R Charlton
6546b94c28 Rearranging IPhreeqc
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@4108 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-02-23 05:05:42 +00:00
Scott R Charlton
44b93e6a6e Rearranging IPhreeqc
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@4107 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-02-23 05:05:19 +00:00
Scott R Charlton
e180be69b0 Rearranging IPhreeqc
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@4106 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-02-23 05:04:35 +00:00
Scott R Charlton
a36dd188d5 Rearranging IPhreeqc
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@4106 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-02-23 05:04:35 +00:00
Scott R Charlton
2ac72344de Rearranging IPhreeqc
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@4105 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-02-23 05:03:55 +00:00
Scott R Charlton
8e246e2564 Rearranging IPhreeqc
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@4104 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-02-23 05:03:20 +00:00
Scott R Charlton
0388b6f7cc Rearranging IPhreeqc
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@4103 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-02-23 04:59:48 +00:00
David L Parkhurst
d4c7e440ab Removing zero editing.
Adding all files from phreeqc using ../database




git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@4039 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-02-10 22:47:02 +00:00
David L Parkhurst
81717e1878 Removing zero editing.
Adding all files from phreeqc using ../database




git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@4039 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-02-10 22:47:02 +00:00
David L Parkhurst
5e56e516a9 Before modification to use standard database files,
shorten run times, and limit output.





git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@4038 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-02-10 21:04:30 +00:00
David L Parkhurst
ef4a5b530e Before modification to use standard database files,
shorten run times, and limit output.





git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@4038 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-02-10 21:04:30 +00:00
David L Parkhurst
5e23f440df Made pressurs a synonym of total_p in gas_phase_modify.
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@4011 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-02-05 17:11:16 +00:00
David L Parkhurst
7b777201e2 Added viscosity function for SC at temperature.
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@4007 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-02-04 20:03:02 +00:00
David L Parkhurst
ef46b2f30e Fixed remove_unstable_phases for class
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3988 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-02-01 22:59:19 +00:00
David L Parkhurst
694c07488e Bugs with kinetics in PHAST.
The formula was not correct when converted to a phreeqcpp class, only the last instance of an element was kept and the rest were lost. Modified NameDouble to accumulate the sum of coefficients for each element when converting from a PHREEQC structure.

The order of the kinetics components was not maintained when converted to a phreeqcpp class. Components were in alphabetical order. This posed a problem with get and put statements because the gets could end up before the puts. Changed from map of components to list of components, which should maintain the order correctly.

Problems with modify solution and redox elements. Laurin pointed out that adding N may leave all the N(x) in place, which increases the total N. Revised read_solution to merge the valence states. If N defined, then all N(x) are removed. If N() defined, then N is removed. Still need to test.


git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3927 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-01-14 16:26:14 +00:00
David L Parkhurst
490fd2be41 Added options to the UNITS keyword to allow moles of solid
reactants to be interpreted as moles per liter of WATER or
 	moles per liter of ROCK:
	
	UNITS
		-equilibrium_phases   ROCK
		-exchange             ROCK
		-surface              WATER
		-solid_solution       WATER
		-kinetics             WATER
		-gas_phase            WATER
		
	By default, the number of moles of solid reactants are
	interpreted as per liter of water. Using the ROCK option,
	PHAST interprets the number of moles of solid
	reactants obtained from the initial PHREEQC calculation
	as per liter of rock. 
	
	Note that an initial PHREEQC calculation is made at the
	beginning of a PHAST run. During this calculation all 
	reaction calculations interpret the concentration of solid
	reactants as simply moles. (When a solution is reacted with
	the solids, the solution contains a mass of water, which is
	usually 1 kg, but not necessarily.) It is only when initial 
	conditions are subsequently distributed in the PHAST calculation 
	that solid reactants are scaled. If the units are WATER, t
	here is no scaling and the number of moles of solids is the 
	number of moles per liter of water. If the units are ROCK, 
	the number of moles of a solid reactant	is multiplied by 
	(1-phi)/phi, where phi is the porosity in the cell receiving 
	the initial condition, to arrive at the	number of moles of 
	solid reactant per liter of water. 
	
	The addition of the ROCK option is motivated by the possibility
	of a domain with a distribution of porosities. In this case, 
	the number of moles of solid reactants per liter of water--
	the units used by PHAST--also vary spatially. By using the 
	ROCK option, a constant rock composition can be defined and 
	the factor (1-phi)/phi is used to scale the number of moles 
	of solid reactant to obtain the number of moles per liter 
	of water in each cell.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3902 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-21 20:36:36 +00:00
David L Parkhurst
d850641336 mpi.h needs to be defined first because of a conflict with stdio (SEEK_SET ifdef).
output.h is needed for NameDouble mpi version.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3886 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-09 17:35:19 +00:00
David L Parkhurst
eff36e06f4 PHREEQC runs as class.
Have fixed bugs with dump_cpp.

Checking in Release results for test cases.




git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3884 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-09 16:28:52 +00:00
David L Parkhurst
7dbc8d0632 PHREEQC runs as class.
Have fixed bugs with dump_cpp.

Checking in Release results for test cases.




git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3884 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-09 16:28:52 +00:00
David L Parkhurst
b454429379 Fixed error with callback. Had not saved the phreeqc pointer in the parser constructor.
Fixed project, directories for versions were all messed up. 

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3881 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-09 01:03:21 +00:00
David L Parkhurst
65ff0a9456 Fixed Makefile on Linux to make class version.
Added eol and other changes for linux.

Had statics in ReadClass.cxx, removed.

Problems with .dmp files. May be because of statics.




git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3879 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-08 23:58:06 +00:00
David L Parkhurst
3131740cfb Compiles as class, debug, and Release.
Requires recompilation of the entire solution for some reason.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3878 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-08 22:12:42 +00:00
David L Parkhurst
9f4eefd214 Made all the changes to add phreeqc pointer as argument to
Phreeqcpp class methods.

Still compiles on Debug and Release, but problem with
phrq_malloc in cvdense and cvode.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3876 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-08 18:09:39 +00:00
David L Parkhurst
157e5cc729 Slowly adding arguments and qualifiers to pass phreeqc class instance to routines that need it.
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3873 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-08 00:56:50 +00:00
David L Parkhurst
6859605bc2 Debug and release compile.
Rearranged pitaer.h creating pitzer_structures.h.

Need to figure out conversion routines from C++ classes to C structures.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3869 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-07 21:33:07 +00:00
David L Parkhurst
2b76f04a8b Cleaned up header files to remove unnecessary includes of .h files. Moved includes to source code where possible.
Moved some methods for .h to source files to avoid need for includes.

Debug and Release compile. 

Still need to get class version working. 

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3868 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-07 19:49:38 +00:00
David L Parkhurst
e65ab2ea73 cleaned up storagebin headers.
cleaned up ssassemblage.h headers.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3867 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-04 23:30:03 +00:00
David L Parkhurst
0a91aa5bec phreeqcpp (nonclass) compiles.
SSassemblage.cxx compiles, but need to work on header files.

Need to fix header files throughout.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3865 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-04 22:47:55 +00:00
David L Parkhurst
b33830cc5c Moving class_main, phreeqc.cpp and phreeqc.h into phreeqcpp.sln
Making a new configuration for compilation.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3850 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-03 19:24:14 +00:00
Scott R Charlton
07d5fa7413 merged 3750-3846 of plusify; system.cxx and system.h need to be formated
removed char * and used std::string's and std::map's

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3847 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-03 01:49:56 +00:00
David L Parkhurst
dd1c83edec eol
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3846 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-03 01:14:07 +00:00
David L Parkhurst
51183867e4 eol
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3844 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-03 01:06:34 +00:00
David L Parkhurst
9f7e982ffe eol
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3842 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-03 00:56:22 +00:00
David L Parkhurst
a4bac119db eol for system.cxx
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3841 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-03 00:54:28 +00:00
David L Parkhurst
3fe2fcd3bb Modified to run_cells if solution exists, even with no reactants.
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3824 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-02 15:45:49 +00:00
Scott R Charlton
303864120a updated for COM object
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3749 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-11-03 23:39:32 +00:00
David L Parkhurst
5de5c6f307 Needed to turn of echo when rereading components.
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3743 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-11-03 19:41:47 +00:00
David L Parkhurst
ff19c86d65 The tellg and seekg did not work for gz files because the
methods are not implemented.

Modified the parser to accumulate lines so that they
could be turned into a stream and reread. Modified
kinetics, exchange, ppassemblage, ssassemblage, and surface to use the new way to reread lines for component values. 

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3742 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-11-03 17:55:36 +00:00
David L Parkhurst
e35673205b Typo of file instead of stream for setting echo to file.
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3739 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-11-02 20:43:37 +00:00
David L Parkhurst
c73fc4b2e9 Modifications for Linux.
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3736 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-11-02 15:34:29 +00:00
David L Parkhurst
b3b22f3fd5 New class
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3735 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-11-02 15:25:39 +00:00
David L Parkhurst
259c0839f0 Added new class runner.
Finished new keyword RUN_CELLS.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3730 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-10-30 22:27:43 +00:00
David L Parkhurst
5f9cf78f01 Modified for parallel version. Had some lists
in the pack and unpack routines that now are 
maps.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3728 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-10-29 20:08:56 +00:00
David L Parkhurst
cd38a8036d Have done preliminary testing with all MODIFY keywords.
Added brief documentation in revisions.

Fixed dump feature of TRANSPORT to work with
dump_raw of C++.

ppdump now has testing for DUMP, DELETE, and MODIFY.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3727 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-10-29 19:53:35 +00:00
David L Parkhurst
d54c04039a Have converted std::list to std::map for all entities.
surface is completed but needs testing.

SS and kinetics need to have reread of components implemented for MODIFY option.

gas_phase may be done, needs to be tested.



git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3726 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-10-28 19:15:17 +00:00
David L Parkhurst
f015759286 exchange_modify is working.
changed list of comps to map of comps.

made sure that description changes were captured for solution, equilibrium_phases, and exchange.

surface is next.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3725 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-10-27 22:57:49 +00:00