# Problems with system of PDE's

**URL:** <https://community.wolfram.com/t/problems-with-system-of-pdes/1126>\
**Category:** Questions\
**Tags:** physics, mathematica\
**Created:** [December 17, 2013, 1:13am UTC](https://community.wolfram.com/t/problems-with-system-of-pdes/1126 "2013-12-17T01:13:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jnapolitano](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/jnapolitano/32/20509_2.png) [@jnapolitano](https://community.wolfram.com/u/jnapolitano)\
**Post date:** [December 17, 2013, 1:13am UTC](https://community.wolfram.com/t/problems-with-system-of-pdes/1126/1 "2013-12-17T01:13:58Z")

</div>

I’m working with a system of partial differential equations with Mathematica--the two linearized momentum equations below--and I’m having trouble figuring out how exactly to solve them.

 ![PDE1.jpg](https://global.discourse-cdn.com/wolfram/original/2X/5/50b14931b26fd5699b8d96f45b1d7e78cbcd5253.jpeg)  
I’ve tried using DSolve and NDSolve, but I keep running into errors. u and w (velocities) are functions of [t,x] and [t,z] respectively. The problem I’m getting is that Fx, Fz, and p include powers of u and w terms in their definitions and DSolve and NDSolve don’t seem to like that. The following definitions are straight from the above paper, consider just the u and x equation:

```auto
Fx:=(\[Rho]*B*Cx*u[t,x]*Abs[u[t,x]])/2
Cx:=0.4+(4600/Renx)^2.9
Ren:=(u[t,x]*L)/v
p:=(\[Rho]*u[t,x]^2)/2

```

Where Rho, B, L, and v are constants:

```auto
\[Rho]:=1000
B:=200
L:=.019
v:=1.005*10^-6  

```

Is there a better way to solve this? Ideally I’d like to include the boundary conditions:

```auto
u[t,0]==t
u[0,x]==1.3*E^(x)

```

I’ve tried to find advice online and in person, but I’ve been unsuccessful. Any advice or code would be wicked much appreciated!

---

<div class="post-metadata">

**Author:** ![fkampas](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/fkampas/32/41217_2.png) [@fkampas](https://community.wolfram.com/u/fkampas)\
**Post date:** [December 17, 2013, 3:39pm UTC](https://community.wolfram.com/t/problems-with-system-of-pdes/1126/2 "2013-12-17T15:39:56Z")

</div>

Your definitions of Fx, C, Ren, p don’t include their dependence on x and t. That may be the problem.

---

<div class="post-metadata">

**Author:** ![jnapolitano](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/jnapolitano/32/20509_2.png) [@jnapolitano](https://community.wolfram.com/u/jnapolitano)\
**Post date:** [December 17, 2013, 9:02pm UTC](https://community.wolfram.com/t/problems-with-system-of-pdes/1126/3 "2013-12-17T21:02:47Z")

</div>

I appologize for not clarifying about that. u[t,x] is a velocity that is dependent on functions of t and x.

```auto
u[t,x]==T[t]*X[x]
T[t]=t
X[x]=E^x

```

So a stripped-down example Dsolve looks like:

```auto
DSolve[
{D[u[t,x],t]+2*u[t,x]D[u[t,x],x]==Fx,
u[t,x]==T[t]X[x]},u[t,x],{t,x}]

```

---

<div class="post-metadata">

**Author:** ![fkampas](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/fkampas/32/41217_2.png) [@fkampas](https://community.wolfram.com/u/fkampas)\
**Post date:** [December 17, 2013, 9:43pm UTC](https://community.wolfram.com/t/problems-with-system-of-pdes/1126/4 "2013-12-17T21:43:01Z")

</div>

The definition of Cx contains Renx which isn’t defined. Ren is defined.

---

<div class="post-metadata">

**Author:** ![fkampas](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/fkampas/32/41217_2.png) [@fkampas](https://community.wolfram.com/u/fkampas)\
**Post date:** [December 17, 2013, 10:31pm UTC](https://community.wolfram.com/t/problems-with-system-of-pdes/1126/5 "2013-12-17T22:31:24Z")

</div>

Also, your boundary conditions are inconsistent. u[0,0] is 0 from one and 1.3 from the other.
