Giter Club home page Giter Club logo

Comments (9)

sonofeft avatar sonofeft commented on August 24, 2024

This is confusing...
If you go to the repository at: https://github.com/sonofeft/RocketCEA/blob/master/rocketcea/py_cea.f
you will see that there is no such line in py_cea.f

I will leave the issue open, but let me know if a fresh install solves the problem.

from rocketcea.

Frank-ZW avatar Frank-ZW commented on August 24, 2024

I ran pip uninstall rocketcea in my conda environment and reinstalled with pip install rocketcea and still have the same error. Do you know what the error means by ...\RocketCEA\temp.dat? Would downloading rocketcea/py_cea.f and replacing the one I have on my computer fix anything?

EDIT: I took a look at the file you linked above and at line 5463, the line READ (IOSCH) jtape,trc is trying to read something from a file. Perhaps the file is missing on my computer or something during installs? I don't really know Fortran so this is really just a best guess.

from rocketcea.

sonofeft avatar sonofeft commented on August 24, 2024

The FORTRRAN runs on a lot of other machines w/o error so...
the error seems to be unique to your setup.
It would be very interesting to know if your download and replace idea would work, however, you could no longer use pip to install it. You would need to manually run setup.py.

Look at issue #24 for help with that: #24

You might also look at the conda comments at: https://rocketcea.readthedocs.io/en/latest/quickstart.html#anaconda-windows-batch-file

Please let me know if any of this helps.

from rocketcea.

Frank-ZW avatar Frank-ZW commented on August 24, 2024

Quick question regarding Issue #24: for the batch file, I have Anaconda installed instead of Python. Would I replace the Python path with the python.exe file in Anaconda?

from rocketcea.

sonofeft avatar sonofeft commented on August 24, 2024

Try the Anaconda batch file instructions at:
https://rocketcea.readthedocs.io/en/latest/quickstart.html#anaconda-windows-batch-file

To find your python.exe path do the following in a command prompt:

import sys
sys.executable

Let me know if that works.

from rocketcea.

Frank-ZW avatar Frank-ZW commented on August 24, 2024

I don't think that changed anything (same error popped up) and I also completely removed and re-created the environment that I installed RocketCEA to. One thing I did notice, however, was that using LH2 and LOX as the fuel and oxidizer worked just fine. As in running

from rocketcea.cea_obj import CEA_Obj

if __name__ == '__main__':
	cea_obj = CEA_Obj(fuelName='LH2', oxName='LOX')
	print(cea_obj.get_Chamber_Transport(Pc=250, MR=1.8, eps=3))
	print(cea_obj.get_Throat_Transport(Pc=250, MR=1.8, eps=3))
	print(cea_obj.get_Exit_Transport(Pc=250, MR=1.8, eps=3))

Produced the output

(1.5488556763074002, 0.47320165501905215, 1.210882782726843, 0.6052782976761931)
(1.4955331913652374, 0.4268640048930907, 1.065034735305588, 0.5994070112028211)
(1.3414337167903312, 0.27194707628430503, 0.6553191747071077, 0.5566737421858051)

Process finished with exit code 0

I tried a few other propellants and it only seems to work for hydrogen and LOX.

from rocketcea.

sonofeft avatar sonofeft commented on August 24, 2024

In the past, odd-ball problems can be related to permissions or perhaps spaces in path names or extra long path names.

To test permissions, you might try running in a command prompt that is "run as administrator".

I don't use Anaconda, so I won't be much help there, but I do think Anaconda buries directories pretty deep in the user area, so extra long path names might exist.

Some less convenient options would be to install RocketCEA on Windows WSL (Windows Subsystem for Linux) or on Google Colaboratory. (both options are described on the Quickstart page of the docs)

from rocketcea.

Frank-ZW avatar Frank-ZW commented on August 24, 2024

I tried running CMD as administrator and it didn't change anything. However, after a bit of messing around with RocketCEA on CMD, I found that running

python -c "from rocketcea.cea_obj import CEA_Obj; C=CEA_Obj(oxName='XXX', fuelName='YYY'); print(C.get_full_cea_output(..., show_transport=1))"

Allowed me to run the transport functions for XXX and YYY without erroring. That is, before, the error was showing up for an Isopropanol-N2O fuel blend but running the following code in command prompt

python -c "from rocketcea.cea_obj import CEA_Obj; C=CEA_Obj(oxName='N2O', fuelName='Isopropanol'); print(C.get_full_cea_output(Pc=250.0, MR=3.50, eps=3.03, show_transport=1))"

And then running

python -c "from rocketcea.cea_obj import CEA_Obj; C=CEA_Obj(oxName='N2O', fuelName='Isopropanol'); print(C.get_Chamber_Transport(Pc=250.0, MR=3.50, eps=3.03))"

Prints out

(0.5581840005382234, 0.8719909920135673, 1.0768349948622604, 0.4520018597813916)

Similar results were printed for the exit and throat transport properties. I have no idea why this works but it seems like the solution in the mean time would be to just run the get_full_cea_output(...) method with the show_transport=1 parameter and the transport functions should work (if you're having that problem).

from rocketcea.

sonofeft avatar sonofeft commented on August 24, 2024

On my Windows installation of RocketCEA (not Anaconda) when I run your desired command:

python -c "from rocketcea.cea_obj import CEA_Obj; C=CEA_Obj(oxName='N2O', fuelName='Isopropanol'); print(C.get_Chamber_Transport(Pc=250.0, MR=3.50, eps=3.03))"
I get: (0.5581840005382234, 0.8719909920135673, 1.0768349948622604, 0.4520018597813916)

straight away without any need to make your first "get_full_cea_output" call.

I'm going to close the issue because I think it is specific to your installation, but I will poke around the code a bit to see if I can find a possible connection between the "get_full_cea_output" and the proper execution of the direct command.

from rocketcea.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.