
[Sponsors] 
June 3, 2004, 15:00 
one Dimensional Navier Stokes Code

#1 
Guest
Posts: n/a

Dear Friends,
I want to solve du/dt+ u . du/dx = dp/dx Can someone direct me or provide me with a code for solving this equation ? Thanks for your time CFDtoy 

June 5, 2004, 00:05 
Re: one Dimensional Navier Stokes Code

#2 
Guest
Posts: n/a

Well, CFDtoy, you haven't adequately defined the problem you'd like to solve. Here in the Yankees organization, we like to have the following pieces of information before solving a PDE.
1) Define the space. Where do you want to solve this equation? On the infinite line inf < x < inf ? On the line segment 0 < x < L ? 2) Boundary conditions. Now that you know where (in x) that you're looking, you must specify what's going on at the boundary. Are you fixing the variable 'u' to be 0 at each boundary? Steinbrenner usually likes to assume periodic boundary conditions when he's just playing around, since there are some methods that thoroughly exploit this structure  so called Spectral Methods, which, as you may or may not be aware, are based on Fourier analysis. Actually, some historians point out that Joe Dimaggio may have independently discovered Fourier analysis while studying the waveparticle properties of the knuckleball. 3) What is 'p'? To close the problem, you must either provide an equation for 'p', or simply specify it (which, while simple, could be instructive depending on how much you already know). There are literally hundreds of ways of numerically investigating this problem. Given a reasonably nice 'p', you can actually solve this exactly by hand with little trouble. Even for a nasty 'p', you can use the method of characteristics to solve the problem (but you're going to need to know about shocks if you solve by hand. Like when the Red Sox trade Babe Ruth to your team. That kind of shock.) So complete the description of the problem, and stop by Yankees Stadium in the Bronx. Ask to speak to Derek Jeter  my office is on the 11th floor, magnetohydrodynamics division, New York Yankees. D. Jeter, Ph.D. 

June 7, 2004, 16:18 
Re: one Dimensional Navier Stokes Code

#3 
Guest
Posts: n/a

Hello Jeter,
Thanks for the reply. Here are certain Flow Characteristics : Domain : 0<x<L say [0,1] p inlet =10 Kpa P out = 1 kpa Vel. inlet = 0.1 m/s Vel . Exit  Outflow Can you help me with a Code say with some kind of Pressure Correction Algorithm such as SIMPLE . Thanks CFDtoy 

June 7, 2004, 16:19 
Re: one Dimensional Navier Stokes Code

#4 
Guest
Posts: n/a

Hello Jeter,
Thanks for the reply. Here are certain Flow Characteristics : Domain : 0<x<L say [0,1] p inlet =10 Kpa P out = 1 kpa Vel. inlet = 0.1 m/s Vel . Exit  Outflow Can you help me with a Code say with some kind of Pressure Correction Algorithm such as SIMPLE . Thanks CFDtoy 

June 7, 2004, 16:20 
Re: one Dimensional Navier Stokes Code

#5 
Guest
Posts: n/a

Hello Jeter,
Thanks for the reply. Here are certain Flow Characteristics : domain extending through a distance starting from 0 to L p inlet =10 Kpa P out = 1 kpa Vel. inlet = 0.1 m/s Vel . Exit  Outflow Can you help me with a Code say with some kind of Pressure Correction Algorithm such as SIMPLE . Thanks CFDtoy 

June 8, 2004, 15:41 
Re: one Dimensional Navier Stokes Code

#6 
Guest
Posts: n/a

Is this for an incompressible flow? 1D incompressible flows are not very interesting, because the divergence free condition kills you instantly.


June 9, 2004, 15:34 
Re: one Dimensional Navier Stokes Code

#7 
Guest
Posts: n/a

Hi noName,
It is an incompressible Flow. why do you think the divergence free is not going to give a smooth ride? in fact most literature do talk about incompressible flow and simple divergence free condition. Thanks for the help. If you come across any simple code that solves a incompressible flow eqn ( with viscosity) I request you to kindly help me with one. I appreciate your time and help. CFDtoy 

June 12, 2004, 10:09 
Re: one Dimensional Navier Stokes Code

#8 
Guest
Posts: n/a

Simple:
In 1 dimension, the divergencefree condition is just du/dx=0, and therefore the velocity u is constant in x. This is boring! 

June 14, 2004, 11:37 
Re: one Dimensional Navier Stokes Code

#9 
Guest
Posts: n/a

Hello
Very true ..but for a constant duct area. if d(UA)/dx=0 and du/dt+1/A*d(U*U*A)/dx=dp/dx A area of cross section changing the problem has a nice solution at steady state. now things shud start the discussion. Thanks CFDtoy 

September 24, 2010, 07:29 
help

#10 
Member
kabilan.B
Join Date: Jul 2010
Location: chennai
Posts: 77
Rep Power: 7 
can u help me to write c program for solving1d heat equation in explicit form?


Thread Tools  
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
1d navier stokes code  domenico bruno  Main CFD Forum  8  June 24, 2012 23:46 
Adding a term to Navier Stokes Equation  ashtonJ  CFX  3  January 15, 2011 07:32 
Navier Stokes code  A.SHAH  Main CFD Forum  0  May 5, 2006 03:23 
Design Integration with CFD?  John C. Chien  Main CFD Forum  19  May 17, 2001 15:56 
help: I am trying to solve Navier Stokes compressible and viscid flow  Jose Choy  Main CFD Forum  2  May 18, 2000 05:45 