Questions tagged [cantera]
27 questions
0
votes
0 answers
LNK 2001 when compiling Cantera C++ Code in Visual Studio 2019
I'm trying to run the test code on the Cantera website in Visual Studio 2019 but get the following error:
error LNK2001: unresolved external symbol "class std::shared_ptr __cdecl Cantera::newSolution(class…

Abi89
- 1
0
votes
0 answers
How to save simulation timestep data in a parquet file and then open a new file after every x amount of steps to save memory? (Python)
I have a cantera simulation which sends each timestep of a chemical reaction into a parquet file where a lot of species from the DataFrame are used. The problem is that it takes too long for the simulation to finish.
Is it possible to write the…

Dominator10
- 1
- 1
0
votes
0 answers
Issues instaling cantera in spyder
I'm trying to use cantera in spyder for a code, but I keep getting this error:
File "c:\users\usuario\.spyder-py3\temp.py", line 7, in
import cantera as ct
ModuleNotFoundError: No module named 'cantera'
I have installed Conda and…
0
votes
0 answers
How to write data from Cantera to a CSV file?
so I am new to both python and cantera but I've found my way around and am able to get my simulation to run how I need it to. The only trouble I am having is being able to save the data that cantera computes as a csv file. I know I need to use the…

hafz686
- 1
0
votes
0 answers
Importing cantera (package) in google colab not working
I am not able to solve the following problem:
For my research I would like to use a Google Colab notebook to perform my data analysis.
To this end I need a package (cantera), which could only be installed using conda.
I am able to do this, however…

Luuk Altenburg
- 1
- 1
0
votes
0 answers
How to read these two columns and stored it in a keywords dictionary
Currently, am modelling constant volume reactor-RCM. I am struggling to set the velocity for a wall. my professor told me that the wall velocity has to be set by using the Volume-Time history profile. I dont know how to make these two columns as a…

Govind Kumar
- 15
- 4
0
votes
4 answers
Issues installing Cantera on Python
I am trying to use Cantera on python. I downloaded Anaconda and followed the instructions on Cantera's website to install. Their website's tutorial says to write:
import cantera as ct
import numpy as np
When I run it, I get the…

MarkS
- 1
- 1
- 1
0
votes
1 answer
Unload shared object (.so file) opened with dlopen() in C++
The problem I'm facing is as follow:
I generate a shared object called customkinetics.so from a f90 file
I use this object in a Cantera (chemistry code) written in C++ with a python interface.
The object is called in a subroutine…

Q.Cazères
- 21
- 1
- 4
0
votes
1 answer
Write .cti or .xml file in CANTERA
I am trying to extract some skeletal mechanism from available detailed mechanism.
Here you can see extracting sub-mechanism from GRI3.0 mechanism. Is there any way to export the submechanism in CANTERA. More specifically can I somehow export gas2…

mko
- 61
- 7
0
votes
1 answer
Convert a chemkin input file to cantera format
I followed the Matlab Interface User’s Guide on website http://www.cantera.org/docs/sphinx/html/matlab/code-docs/utilities.html to convert a CHEMKIN input file to Cantera format,the steps are
adddir('the directory of chem.inp,therm.dat and…

hongbinLi Peter
- 1
- 2
0
votes
1 answer
Installing Cantera 2.1 on OSx 10.9 Mavericks
to install cantera 2.1 on my macbook pro I am following the procedure from Bok Jik Lee recently posted on his blog:
Installing Cantera 2.1 on OSx 10.9 Mavericks
Everything worked fine till now but I get an error when I come to point 9: "Install…
-1
votes
2 answers
Choose the name to save a .csv file and use the name entered throughout the python script
I want to save a .csv file using Python every time I want using a different name. So I wrote this code. In add of this, I want to use the new name in the rest of the script that after saving continues to run. How can I do this? Suggestions? Thank…

wundolab
- 177
- 10