PhreeqcUsers Discussion Forum

Registrations currently disabled due to excessive spam. Please email phreeqcusers at gmail.com to request an account.
Welcome Guest
 

  • Forum Home
  • Login
  • Register

  • PhreeqcUsers Discussion Forum »
  • Conceptual Models »
  • Database selection and modification »
  • K-feldspar input not recognised
« previous next »
  • Print
Pages: [1]   Go Down

Author Topic: K-feldspar input not recognised  (Read 805 times)

kennedyantwi1

  • Top Contributor
  • Posts: 32
K-feldspar input not recognised
« on: 04/03/25 17:01 »
Dear Dr. Parkhurst,
I keep getting the following error messages at any attempt to include K-feldspar in my model. Please, your guidance and suggestions would be appreciated. Thanks.

ERROR: Syntax_error: missing = in line:
ERROR: in BASIC line
6 molarVolume_K-feldspar=0.10911
ERROR: Fatal Basic error in USER_PUNCH.

Here's a part of the input file:

4 Pore_volume = Gas_Volume + Water_volume
5 Bulk_volume = Pore_volume/Initial_porosity
6 molarVolume_K-feldspar = 0.10911   # L/mol Literature data 109.11+-0.30
7 molarVolume_kaolinite = 0.09931   # L/mol 99.31+-0.30
8 molarVolume_quartz = 0.022695    # L/mol
Logged

dlparkhurst

  • Global Moderator
  • *****
  • Posts: 4067
Re: K-feldspar input not recognised
« Reply #1 on: 04/03/25 19:00 »
You can't use a "-" in a variable name, and you can't do a subtraction on the left-hand-side of the equal.
Logged

kennedyantwi1

  • Top Contributor
  • Posts: 32
Re: K-feldspar input not recognised
« Reply #2 on: 04/03/25 21:02 »
Thanks for your response.
1. I haven't used any inverted comma's in these scripts nor done any subtraction.
I think you've taken my UNDERSCORE  "_" as a Minus symbol.
Logged

kennedyantwi1

  • Top Contributor
  • Posts: 32
Re: K-feldspar input not recognised
« Reply #3 on: 04/03/25 21:58 »
And please for your further information, I have ran the model earlier in the day by Taking out the K-feldspar keywords from the script. So, I think the issue's got to do with the K-feldspar???
Thanks in advance for your suggestions.
Logged

dlparkhurst

  • Global Moderator
  • *****
  • Posts: 4067
Re: K-feldspar input not recognised
« Reply #4 on: 04/03/25 22:12 »
Please use the following:

Code: [Select]
6 molarVolume_K_feldspar = 0.10911   # L/mol Literature data 109.11+-0.30
Logged

kennedyantwi1

  • Top Contributor
  • Posts: 32
Re: K-feldspar input not recognised
« Reply #5 on: 05/03/25 02:17 »
Thanks a lot Dr. Parkhurst. I have succeeded in running the model based on your changes. Is there a way i may share my input file with only you for any further fine-tuning, guidance and suggestions, as it is a part of sensitive project?
Logged

dlparkhurst

  • Global Moderator
  • *****
  • Posts: 4067
Re: K-feldspar input not recognised
« Reply #6 on: 05/03/25 05:34 »
Nah, I don't want any part of a sensitive project. I will answer explicit questions on the forum.
Logged

  • Print
Pages: [1]   Go Up
« previous next »
  • PhreeqcUsers Discussion Forum »
  • Conceptual Models »
  • Database selection and modification »
  • K-feldspar input not recognised
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies
  • XHTML
  • RSS
  • WAP2