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 »
  • Processes »
  • Reactive transport modelling »
  • Multiple transport simulations
« previous next »
  • Print
Pages: [1]   Go Down

Author Topic: Multiple transport simulations  (Read 5335 times)

phuongthanh.hd.1993

  • Contributor
  • Posts: 8
Multiple transport simulations
« on: 23/05/19 04:11 »
Dear,

I am working on reactive transport.
This is my code for TRANSPORT
-cells  95
-shifts 10
-timest 8640
-bcon   constant flux
-length 0.70416 1.59840 1.74528 1.48608 1.65024 1.98720 1.98720 1.83168 1.50336 1.47744 1.51200 1.57248 1.60704 1.74528 1.74528 1.72800 1.33056
-punch_frequency 10

My problem is that I have thousand series of length, and each series of length I need to run 10 time of shifts (ex: 10, 20, 30, 40, ..,100).
Are there any way to help me solve this problem? it will consume time if I copy and paste and run one by one. -_-
Thank you.
Logged

dlparkhurst

  • Global Moderator
  • *****
  • Posts: 4222
Re: Multiple transport simulations
« Reply #1 on: 23/05/19 05:19 »
I don't really understand how you have thousands of different sets of lengths, but if you want to do thousands of calculations then you have to set them up.

First, you can do 100 shifts and print every 10th shift.

Second, you can have multiple TRANSPORT simulations, and if the lengths are the same for each, then you only have to define them once.

If you have many repetitive calculations you have three options. (1) you can cut and paste to make multiple input files, (2) you may be able to program multiple calculations with a PHREEQC input file as shown in example 8, or (3) you can program with a scripting language like Visual Basic using IPhreeqcCOM or a programming language like C, C++, or Fortran using IPhreeqc. A variant is that you can write a program using whatever language that generates all of the PHREEQC input file.
Logged

phuongthanh.hd.1993

  • Contributor
  • Posts: 8
Re: Multiple transport simulations
« Reply #2 on: 23/05/19 08:39 »
Thank you Dr. Parkhurst,

I can call PHREEQC run automatically after making 1000 input files (using any language), right?
Logged

dlparkhurst

  • Global Moderator
  • *****
  • Posts: 4222
Re: Multiple transport simulations
« Reply #3 on: 23/05/19 15:48 »
If you know how to do it.
Logged

phuongthanh.hd.1993

  • Contributor
  • Posts: 8
Re: Multiple transport simulations
« Reply #4 on: 24/05/19 03:52 »
Thank you for your reply.
Logged

dlparkhurst

  • Global Moderator
  • *****
  • Posts: 4222
Re: Multiple transport simulations
« Reply #5 on: 24/05/19 04:00 »
If you have a thousand input files, the simplest way to run them all is with a batch file in Windows or a Linux shell script.
Logged

phuongthanh.hd.1993

  • Contributor
  • Posts: 8
Re: Multiple transport simulations
« Reply #6 on: 24/05/19 10:05 »
oh, great.

Thank you so much.
Logged

  • Print
Pages: [1]   Go Up
« previous next »
  • PhreeqcUsers Discussion Forum »
  • Processes »
  • Reactive transport modelling »
  • Multiple transport simulations
 

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