HCBBS Forum (English)
Submit Chemical Projects / Find Solutions
Amplify Your Requirements on a Broader Chemical Platform *Engineering · Technology · Equipment · Solutions*
Submit Request

Asepn and Fortran compilation connection issues

2023-11-25View Original

Thread Content

Recently, I tried to connect a Fortran subroutine to Aspen using online search methods; entering ‘cd’ in Customize Aspen Plus V12 allowed me to navigate to the correct directory successfully. However, when I used the aspcomp command, an error occurred, as follows: C:\ProgramData\AspenTech\Aspen Plus V12.0\RPB Custom Models_Reddy mstrs>aspcomp RIPPA.f Message: The file cannot be found using the specified pattern. Sorry, the file “C:\ProgramData\AspenTech\Aspen Plus V12.0\RPB Custom Models_Reddy mstrs\RIPPA”.f” was not found. Please check it. How can this problem be resolved? I need help from experts
Reply #22023-11-25
This issue may be caused by several different factors. We can troubleshoot it step by step first: 1. **Verify the file exists**: Make sure the Fortran source file `RIPPA.f` that you want to compile is indeed located in the directory `C:\ProgramData\AspenTech\Aspen Plus V12.0\RPB Custom Models_Reddy mstrs`. 2. **Check file name case**: If your operating system is case-sensitive regarding file names, make sure that the `RIPPA.f` entered in the command matches the case of the actual file name. 3. **Check for spaces in the file path**: If there are spaces in the file path, it may be necessary to enclose the path in quotes. Try running: `aspcomp "RIPPA.f"` 4. **Check the path to the `aspcomp` command**: It’s possible that the `aspcomp` command isn’t properly configured in the system’s environment variables, which prevents the command line from recognizing it. You can check the environment variables, or you need to first navigate to the installation directory of `aspcomp` to run it. 5. **Check file and directory permissions**: Ensure that you have permission to read the `RIPPA.f` file, as well as permission to write in the current directory. In some cases, administrative privileges may be required to run the command line. 6. **Try the full path**: Try using the full file path in the `aspcomp` command, for example: aspcomp “C:\ProgramData\AspenTech\Aspen Plus V12.0\RPB Custom Models_Reddy mstrs\RIPPA.f” 7. **Check the Fortran compiler**: Make sure you have the Fortran compiler installed, and that Aspen Plus can locate it. Sometimes it is necessary to specify the compiler path in Aspen’s settings. 8. **View Aspen Plus logs and documentation**: Aspen Plus may provide additional error information in a certain log file. Check Aspen Plus’s help documentation or relevant log files to see if there is more detailed information about the `aspcomp` command. 9. **Contact Aspen technical support**: If these steps do not resolve the issue, the best course of action is to contact Aspen technical support. Normally, the manufacturer’s technical support team provides professional assistance for their software products. Checking these points might help you solve the problem. .
Reply #32023-11-25
After adding “cd”, the following message appeared: C:\Users\PC\Desktop\RPB Custom Models_Reddy mstrs>aspcomp Reddymstrc.f Message: The file cannot be found using the provided pattern. ASPCOMP: Warning! The Intel Fortran compiler ifort.exe is not found in %PATH%. ASPCOMP: Warning! The Intel Fortran runtime library libifcoremd.lib is not found in %LIB%. ASPCOMP: Warning! The Intel Fortran runtime library is required for dynamic linking. ASPCOMP: Run “Set Compiler for Vxx” and select a supported C++ and Fortran compiler set that has been installed on your system. ‘ifort.exe’ is not an internal or external command, nor is it a runnable program or batch file. Error in compiling preprocessed file: Check compile.log
Reply #42023-11-26
Okay, could you please help check the issues in my reply below?

Submit a Project

**Looking for Chemical Technology, Equipment & Solutions?** No Registration Required Broader Platform Exposure | Global Chemical Service Provider Connections

Submit Request — Free Consultation

Disclaimer

This is an automated machine translation of the original thread. Some technical terms may have inaccuracies; the original text shall prevail. Click "View Original" at the top right to access the source page, which supports IP-based automatic real-time language translation. Please watch out for contact details and sales inducements to prevent fraud. All content and translations are for reference only, representing solely the poster's personal views. For enquiries, email service@hcbbs.com.