QuestionQuestion

Use navier stokes equation or Darcy equation in the form of PDE and code it in matlab to solve a case study like water movement or oil movement in reservoirs.

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

clc;
clear all;
w = 1e+6;
beta = 0.5;
L = 2;
c = 1/(beta);
dt = 1e-8;
dx = 1e-2;
p = c*dt/dx;
Nt = 1e+3;
Nx = L/dx;
x = 0:dx:(Nx-1)*dx;
t = 0:dt:(Nt-1)*dt;
v1(1,:) = 10*cos(w*t);


for i = 1:Nx-1
    for j = 1:Nt-1
       if (j>=2 && i>=2)
            v1(i+1,j) = (1/(p*p))*(v1(i,j+1)-p*p*v1(i-1,j)-2*(1-(p*p))*v1(i,j)+v1(i,j-1...

By purchasing this solution you'll be able to access the following files:
Solution.m and Solution.docx.

50% discount

Hours
Minutes
Seconds
$100.00 $50.00
for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available MATLAB for Mathematics Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats