How do I send vectors through my functions to find an Adiabatic Flame Temperature?
3 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Abraham Boayue
2018 年 2 月 22 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Structures についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!