deng-mit / arrhenius.jl Goto Github PK
View Code? Open in Web Editor NEWDifferentiable Reacting Flow Modeling Software
Home Page: https://deng-mit.github.io/Arrhenius.jl/dev/
License: MIT License
Differentiable Reacting Flow Modeling Software
Home Page: https://deng-mit.github.io/Arrhenius.jl/dev/
License: MIT License
Use a NN to produce S-Curve
Need a careful benchmarking to optimize the choice of whether using sparse matrix according to the size of the matrix and its sparsity
hi,
I try just to compile the PSR.jl resulting in the error below. Can you recompile the DRM22 mech (CH4_Kazakov_without_NOx.yaml) / or fix it ?
Thanks, Dmitry
julia> gas = CreateSolution("CH4_Kazakov_without_NOx.yaml")
ERROR: MethodError: no method matching Array{Float64,2}(::Array{Float64,3})
Closest candidates are:
Array{Float64,2}(::AbstractArray{S,N}) where {T, N, S} at array.jl:562
Array{Float64,2}(::UndefInitializer, ::Int64, ::Int64) where T at boot.jl:408
Array{Float64,2}(::UndefInitializer, ::Int64...) where {T, N} at boot.jl:412
...
Stacktrace:
[1] convert(::Type{Array{Float64,2}}, ::Array{Float64,3}) at .\array.jl:554
[2] Arrhenius.Transport(::Int64, ::Array{Float64,2}, ::Array{Float64,2}, ::Array{Float64,3}) at C:\Users\lysenkod.julia\packages\Arrhenius\BOKjU\src\DataStructure.jl:23
[3] CreateSolution(::String) at C:\Users\lysenkod.julia\packages\Arrhenius\BOKjU\src\Solution.jl:142
[4] top-level scope at REPL[31]:1
Line 56 in 51a2f3d
Basically, following the code in ReacTorch. So far, it works well, and this task is not urgent at all.
Line 56 in 51a2f3d
Perhaps testing one small mechanism of GRI3.0, and a large one for n-heptane.
This is very essential for a lot of the cases
Code is almost ready, research can come online soon
As Julia is not widely adopted in the Combustion community, it will be great to have instructions for beginners from different backgrounds. For example,
The current equation for X2C(gas, X, ρ_mass)
C = X * ρ_mass ./ gas.MW
seems incorrect to me. It is the same as for Y2C
, which can't be the case.
Instead it should read
C = X * ρ_mass / sum(X.*gas.MW)
Already done
Line 9 in 51a2f3d
Currently, the interpretation of kinetic, thermodynamic, and transport are coded together. It will be great to spill them into three parts, to make the code more modulized.
Pass a vector that contains factors to create the solution, and multiply it in wdot_func
Line 23 in cb0b2ee
Need better approach to handle such situations. Currently, I have to manually go to the yaml file and put zero Troe coefficients.
implement the discretization for one-dimensional flame, then one can compute the residuals and the sensitivity for a given solution. Further, one can also solve the equations.
see Chemkin manual Sec. 12.6
similar to the one did for sensBVP for ignition, but more complex with the central difference.
This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml
to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix
on this issue.
I'll open a PR within a few hours, please be patient!
something like
E_C = [10, 0, 0, 1, 1, 3, 2, 3, 5, 6, 7, 0, 0, 0, 0];
E_H = [16, 1, 2, 3, 4, 5, 4, 6, 6, 6, 8, 0, 0, 1, 2];
E_N = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0];
E_O = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2];
This is especially useful for computing elemental conversation subspace.
As the package becomes more and more complex, it is important to adopt unit testing. We can following the example of RMS.jl at https://github.com/ReactionMechanismGenerator/ReactionMechanismSimulator.jl/blob/ac2a3bd88504b86d5bc60dedc09533839a9c9cbb/src/Calculators/TestThermo.jl#L1-L60.
Some thoughts:
@test Cps ≈ Cpexplist rtol=1e-3
where 1e-3 is a good default value for tolerance.A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.