Closed GoogleCodeExporter closed 9 years ago
Can you explain what you mean by "CFD type changes"?
Original comment by yarmond
on 11 Sep 2012 at 12:57
Hello,
By CFD type changes I mean for example: Changes in the timestep, mesh and also
if its possible to make changes to the finite difference approximation
equations and if its possible to add terms to it like electric fields? I am
using the one dimensional non-premixed flame model.
Thank you!
Parth
Original comment by shah13pa...@gmail.com
on 12 Sep 2012 at 2:11
The implementation of the 1D flame solver is entirely in C++. If you want to
change the equations being solved, have a look at the method
AxiStagnFlow::eval, defined in src/oneD/StFlow.cpp.
For the mesh, look at src/oneD/refine.cpp, and for the time stepping, look at
Sim1D::solve (in src/oneD/sime1D.cpp) and OneDim::timeStep (in
src/oneD/OneDim.cpp).
Original comment by yarmond
on 12 Sep 2012 at 3:10
Thank you for your response! It really helps but I am unable to find the files
that you mentioned earlier. Are those present by the same name in the latest
Cantera Version? I'm sorry but I'm having a hard time locating those- Thanks!
Please help me.
Original comment by shah13pa...@gmail.com
on 12 Sep 2012 at 4:32
Sorry for the typo, that should be "Sim1D.cpp" for the location of
Sim1D::solve. Those files are in the source code for the current release. If
you aren't compiling Cantera from the source code, then these files won't be
present and you won't be able to make changes to them.
Original comment by yarmond
on 12 Sep 2012 at 2:59
I may sound a very ignorant here. But how do I compile Cantera from the source
code? Could you please explain it to me very briefly? I downloaded the latest
version of cantera and just followed the instructions on the website.
Original comment by shah13pa...@gmail.com
on 12 Sep 2012 at 3:30
The documentation is here:
http://cantera.github.com/docs/sphinx/html/compiling.html
If you don't know how to program in C++, then you aren't going to be able to
make the necessary changes to the source code.
Original comment by yarmond
on 12 Sep 2012 at 5:28
I have a good understanding of C++. I'm just not able to find those files in
the source code which is really strange to me.
Original comment by shah13pa...@gmail.com
on 12 Sep 2012 at 6:06
Original issue reported on code.google.com by
shah13pa...@gmail.com
on 10 Sep 2012 at 7:18