Naveen Krish
Followers: 0 Following: 0
Statistiques
20 Questions
0 Réponses
RANG
203 007
of 295 569
RÉPUTATION
0
CONTRIBUTIONS
20 Questions
0 Réponses
ACCEPTATION DE VOS RÉPONSES
10.0%
VOTES REÇUS
0
RANG
of 20 247
RÉPUTATION
N/A
CLASSEMENT MOYEN
0.00
CONTRIBUTIONS
0 Fichier
TÉLÉCHARGEMENTS
0
ALL TIME TÉLÉCHARGEMENTS
0
RANG
of 154 105
CONTRIBUTIONS
0 Problèmes
0 Solutions
SCORE
0
NOMBRE DE BADGES
0
CONTRIBUTIONS
0 Publications
CONTRIBUTIONS
0 Public Chaîne
CLASSEMENT MOYEN
CONTRIBUTIONS
0 Point fort
NOMBRE MOYEN DE LIKES
Feeds
Question
I need to set up my code for Central difference scheme
Write a MATLAB code to numerically solve the abovementioned ODE using the centraldifference scheme numerical difference scheme d...
plus de 2 ans il y a | 1 réponse | 0
0
réponseQuestion
Index in position 2 exceeds array bounds. Index must not exceed 7. Error in ftcsimplicit (line 39) plot(x,u(:,7200),'-',x,u(:,14400),'-',x,u(:,21600),'-',x,u(:,28800),x,u(:,3
% Chlorine decay using FTCS Implicit method clear; % Parameters to define the chlorine dacay in the pipe and the range in sp...
plus de 2 ans il y a | 1 réponse | 0
0
réponseQuestion
To solve using implicit FTCS scheme
Hi im working on a project on chlorine decay during flow. I would really use some help. I cant able to figure out how to start w...
plus de 2 ans il y a | 1 réponse | 0
0
réponseQuestion
File: laxexplicit.m Line: 41 Column: 31 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
% Chlorine Decay Flow for the Lax method to solve the advection equation clear; % Parameters to definr the advection equatio...
plus de 2 ans il y a | 1 réponse | 0
1
réponseQuestion
Figure 2 not working
% Heat diffusion in one dimensional wire within the explicit FTCS method clear; % Parameters to define the heat equation and t...
plus de 2 ans il y a | 1 réponse | 0
0
réponseQuestion
I need to change the boundary condition in the code below
% Heat diffusion in one dimensional wire within the explicit FTCS method clear; % Parameters to define the heat equation and...
plus de 2 ans il y a | 1 réponse | 0
1
réponseQuestion
Index in position 1 is invalid. Array indices must be positive integers or logical values. Error in explicitftcs (line 28) u(Nx+1,k) = 1.; >> u(Nx+1,k) = 1.; Index in
% Heat diffusion in one dimensional wire within the explicit FTCS method clear; % Parameters to define the heat equation and t...
plus de 2 ans il y a | 2 réponses | 0
2
réponsesQuestion
how to write this boundary conditions in matlab code
This is my boundary condition i need to use explicit ftcs numerical difference scheme 𝐶|𝑥=0 = 1 mg/L, 𝑑𝐶 𝑑𝑥 |𝑥=𝐿 = 0, 𝐶|𝑡=0 =...
plus de 2 ans il y a | 1 réponse | 0
0
réponseQuestion
Error using plot Vectors must be the same length. Error in Eulerrk (line 54) plot (t,h(:,1),A,xR,yR(:,1))
clc clear all %%RK Method %h=[3600 1800 900 450 225]; h = 3600; A0=1; B0=3; P0=0; K=5*10^-5; Yb=1; Yp=0.15; xR ...
plus de 2 ans il y a | 1 réponse | 0
1
réponseQuestion
Not enough input arguments. Error in odefun (line 2) y1 = y(1); Error in bvp4c (line 5) sol =bvp4c(odefun,bcfun,solinit);
function dydx = odefun(y,x) % equation to solve y1 = y(1); y2= y(2); dy1_dx = y(2); dy2_dx = [U*y2+K*y1/D]; dy_dx = [dy_dx;...
plus de 2 ans il y a | 2 réponses | 0
2
réponsesQuestion
File: bvpfcn.m Line: 1 Column: 23 Invalid use of operator.
Hi, I'm doing a project on chlorine decay in water distribution pipes, to solve this ODE with the following Matlab's BVP4C func...
plus de 2 ans il y a | 2 réponses | 0
2
réponsesQuestion
To plot the absolute percent error
Hi, I'm doing a project on formation of disinfection byproducts during water treatment to solve this problem i have to plot the ...
plus de 2 ans il y a | 1 réponse | 0
0
réponseQuestion
File: bvpfcn.m Line: 1 Column: 23 Invalid use of operator.
function dydx = bvp4c(@ode,@bc,solinit); % equation to solve plot(r.x,r.y(1,:),'--o'); title('chlorine decay') xlabel('pipe...
plus de 2 ans il y a | 1 réponse | 0
0
réponseQuestion
File: bvpfcn.m Line: 1 Column: 23 Invalid use of operator.
function dydx = ode(y, x) D = 0.1; % m2/s U = 1; % m/s K = 1e-6; % 1/s dydx = [y(2)* (U * y(2) + K * y(1)) / D]; %...
plus de 2 ans il y a | 1 réponse | 0
0
réponseQuestion
need to use this analytical solution to plot the absolute percent error in the concentration A at each time step for Euler's method
%% Euler nsteps = 12; t = zeros (nsteps,1); A = zeros (nsteps,1); B = zeros(nsteps, 1); P = zeros(nsteps,1); A(1) = 1; B(...
plus de 2 ans il y a | 1 réponse | 0
1
réponseQuestion
Unrecognized function or variable 'A'. Error in ode89vsrk (line 37) plot (t,A,x,Y(:,1))
clc clear all %% ODE89 A0=1; B0=3; P0=0; K=5*10^-5; Yb=1; Yp=0.15; tspan = [0 43200]; [x,Y] = ode89(@(t,Y) odefun...
plus de 2 ans il y a | 1 réponse | 0
1
réponseQuestion
Not enough input arguments Error in bvpfcn (line 5) dydx = [y(2)*(U*y(2)+K*y(1))/D];
Error in bvpfcn (line 5) dydx = [y(2)*(U*y(2)+K*y(1))/D];
plus de 2 ans il y a | 1 réponse | 0
1
réponseQuestion
Incorrect use of '=' operator. Assign a value to a variable using '=' and compare values for equality using '=='.
D=0.1; U=1; K= 1*10^-6; ci=3; co=2; L=1; y(1) =C; y(2) = dc/dx; y(2)'=dc^2/dx^2; function dcdx = bvpfcn(c,x) % euation ...
plus de 2 ans il y a | 1 réponse | 0
0
réponseQuestion
I got two different graphs from my code like ODE89 and Eulers method. I need to compare the graphs in it.
ODE89 clc clear all A0=1; B0=3; P0=0; K=5*10^-5; Yb=1; Yp=0.15; tspan = [0 43200]; [t,Y] = ode89(@(t,Y) odefun(t,...
plus de 2 ans il y a | 1 réponse | 0
1
réponseQuestion
I want to comapre my A,B and P against time and want to compare my ODE89 function with Eulers method with a timestep of 3600
nsteps = 12; t = zeros (nsteps,1); A = zeros (nsteps,1); B = zeros(nsteps, 1); P = zeros(nsteps,1); A0 = 1; B0 = 3; P0 = ...
plus de 2 ans il y a | 1 réponse | 0