1

How to copy paste text data into T2VOC fortran77?

Hi my name is Asni from Malaysia. Recently, I have buy the T2VOC for my master study under Universiti Teknologi Malaysia grant.

Im new to the T2VOC and fortran77. Please someone who know how shall I input the data into the T2VOC. I have read the manual but I dont understand how it works. If someone knows video or a simple way to input the data and run the output please let me know.

6replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Dear Nor Asni Axixan,

    You have to use a simple, plain text editor (e.g., Notepad; TextPad, Edit, ...) to create your input files, which you then redirect into the TOUGH executable. Assuming you run T2VOCon a PC, just open one of the input files provided with the T2VOC distribution in Notepad as a template and make changes as needed. Then save it and quit Notepad. Open a DOS-Command window, change to the working directory, make sure the T2VOC executable (named, e.g., T2VOC.exe) is either in the working directory or you have appropriately defined the command search path, then type:

    T2VOC.exe < input_file_name > output_file_name

    These steps are described on Slide 5 of the attached file. You may also go through the tutorial material, which is available at http://esd.lbl.gov/files/research/projects/tough/events/training/TOUGH2_Tutorial.pdf.

    Hope this helps,

    Stefan

    Like
  • Dear Stefan,

    Thanks for your input. I had succeed unti the working directory and already open the DOS-Command window. However, when I had type the command

    T2VOC.exe < input_file_name > output_file_name

    In my case, it has been named as:

    xt2_t2voc.exe < rgdif.txt > rgdif.out 

    rgdif is for file problem input 1

    nothing happen. I tried so many times for so many days but still blank. Where did I miss the steps. 

     

    Thanks.

    Regards,

    Asni

    Like
  • Asni,

     

    Not sure what you mean by "nothing happened". Did the command prompt come back? Were there any error messages printed to the screen? Were any files created in your working directory (e.g., MESH, INCON)? Most importantly: did you get any output in file rgdif.out?

    Stefan

    Like
  • Dear Stefan,

    Attached herewith three (3) copy of document; 1) t2voc-asni.pdf contain what did I do following to the installation. 2) t2-core-source-v2.1.zip & t2-t2voc-source-v2.1.zip both files I got it when my supervisor purchase it under UTM grant. 

    Hope that you could help me find which steps I did wrong. Thanks Stefan.

     

    Regards,

    Asni

    Like
  • Asni,

    Your Step 4a is not correct. you have to change directory (not executing the code) by typing:

    cd TOUGH2\Executables\T2_T2VOC_Source_v2.1\Sample_T2VOC

    (do NOT append the executable name here!). Type

    dir

    to confirm that you're now actually in the directory where the input files and executable reside.

    Next, execute the code and redirect the standard input and standard output using "<" and ">", respectively, as shown in the instructions, i.e., type:

    xt2_t2voc.exe < rgdif.txt > rgdif.out 

    You (sort of) say you did that in Step 5, but I cannot see that you actually typed in the command FROM THE COMMAND LINE, i.e., not AFTER you got stuck by just typing

    xt2_t2voc.exe

    Please try again. Just so you know what happened: T2VOC started and printed this header information to the screen (instead of being redirected to rgdif.out). Now it is waiting for in put from standard input (your keyboard, rather than being read from file rgdif.txt). So if you want, you could actually type in the input file at this point - no, I do NOT recommend you do this...).

    Cheers,

    Stefan

    Like
  • Dear Stefan,

    Now I know how to run it. Your input are valuable for those who are new to the software especially me. Thanks so much Stefan. I really appreciated it. :)

     

    In here, I shared what I did via file attached. :)

     

    Thanks.

    Regards,

    Asni

    (^_________^)V

    Like
Like1 Follow
  • 1 Likes
  • 8 yrs agoLast active
  • 6Replies
  • 1003Views
  • 3 Following