Feeds
提问
Why does my solution to an ordinary second order differential equation look weird at low flow rates , when it decreases at some point which doesnt make any sense and then normal ?
.Only the important part of the code . The main function of the code is to find bubble size for different flow rates. .I used...
8 years 前 | 0 个回答 | 0
0
个回答提问
Why does this function always gets solved at the initial point even though I keep on trying for different initial guess ? What is wrong with my fsolve ? Any kind of help will be appreciated
if true % Bubble formation in highly viscous liquids % Model: Ramakrishnan, Kumar, Kuloor 1970 % taking place under c...
8 years 前 | 0 个回答 | 0
0
个回答提问
Why does one of my nonlinear equation is always solved at the initail point using fsolve , even though I keep on changing the initial point to different extremes and ranges ?
function [v_finRammicro,v_rate,v_fbRammicro,v_secRammicro] = mainRamakrishnamicro () format long v_fbRammicro =...
8 years 前 | 0 个回答 | 0
0
个回答提问
Why do I get the same error even though I increased the tolerance of the fsolve function ?
options = optimoptions('fsolve','TolX',1e-12); options = optimoptions(options,'TolFun',1e-12); And Still I ge...
8 years 前 | 0 个回答 | 0
0
个回答提问
I have to solve a second order differential equation in a loop with different initial values and variable values. The solver works perfectly for one loop. How can I save all the values for time, distance and velocity for each loop separately?
function [V,X1,v_fb,ub,so,t,y,v_fin,t_det,dis,db_f] = mainScargode() g= 9.81; sig= 0.072; D_or= 1.8e-03; ...
8 years 前 | 0 个回答 | 0
0
个回答提问
I used an Euler's approach to solve the second order differential equation . But I get infinty values after fourth loop. The equations are correct and I cross checked them many times. Is there something wrong with the syntax or intialization ?
if true function [V,X1,v_fb,ub,so] = mainScargsingleloop() g= 9.81; sig= 0.072; D_or= 7.8e-03; ...
8 years 前 | 0 个回答 | 0
0
个回答提问
I get a totally erroneous graph as the output and the result says , 'fsolve stalled ' and in accuracy possible. I tried to change the Tolerance level but still the same output. Does someone has some solutions on increasing accuracy of 'fsolve' ?
if true % function mainScargEuler() g= 9.81; sig= 0.072; D_or= 7.8e-03; % Orifice Di...
8 years 前 | 0 个回答 | 0
0
个回答提问
The function F2 is not working correctly. I have to solve a second order differential equation and the ODE45 solver in the main function doesnt run. The main function actually takes values from two other functions, so whx is my ODE45 not working ?
function mainScarg v_fb = zeros(40,1); v_rate = zeros(40,1); v_fin = zeros(40,1); tdet = zeros(40,1); ...
8 years 前 | 1 个回答 | 0
1
个回答提问
I get a graph, but I think the iteration is going wrong as i get a totally unexpected curve. I need to run the F1 first and use the answer from that to run F2. Is it the correct method or did i go some where wrong ? Thanks in advance
function mainRamakrishna v_fb = zeros(15); v_rate = zeros(15); v_fin = zeros(15); A = zeros(15); B...
8 years 前 | 0 个回答 | 0
0
个回答提问
Why is my iteration not working. ? ( the solution array has all the same value from first iteration )
%function F = Gaddis(x) for (i = 1:40) vol(1) = 5*10^(-6); % volumetric gas flow rate s...
8 years 前 | 1 个回答 | 0

