How do I send vectors through my functions to find an Adiabatic Flame Temperature?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am currently operating the "main.m" file to solve for the adiabatic flame temperature for a combustion process. The loop operates fine when I manually input a value for "phi" "X_O2" and "T_ref", but ultimately I would like to run the whole program for a range of "phi", "X_O2", and "T_ref".
For example:
Instead of inputing phi = 1
I would like to run the function for a range of phi=.25:.01:2
Unfortunately, I cannot figure out how to input these variables as vectors.
Are there any resources or examples that would help? Thank You
0 comentarios
Respuestas (1)
Abraham Boayue
el 22 de Feb. de 2018
Hi Thomas, The reason why you cannot input a vector value for phi, xo2 and T_ref is that, the function called myHR was written to handle only scaler values of the above variables. You might want to look into that first. I think it is still possible to work around that. Try to make your main function to get vector inputs of the variables and pass the values one at a time to feed your myHR function. Let me know if you encountered issues doing that.
0 comentarios
Ver también
Categorías
Más información sobre Structures en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!