CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

one Dimensional Navier Stokes Code

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 3, 2004, 16:00
Default one Dimensional Navier Stokes Code
  #1
CFDtoy
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
  Reply With Quote

Old   June 5, 2004, 01:05
Default Re: one Dimensional Navier Stokes Code
  #2
Derek Jeter
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 wave-particle 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, magneto-hydrodynamics division, New York Yankees.

D. Jeter, Ph.D.
  Reply With Quote

Old   June 7, 2004, 17:18
Default Re: one Dimensional Navier Stokes Code
  #3
CFDtoy
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
  Reply With Quote

Old   June 7, 2004, 17:19
Default Re: one Dimensional Navier Stokes Code
  #4
CFDtoy
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
  Reply With Quote

Old   June 7, 2004, 17:20
Default Re: one Dimensional Navier Stokes Code
  #5
CFDtoy
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
  Reply With Quote

Old   June 8, 2004, 16:41
Default Re: one Dimensional Navier Stokes Code
  #6
noName
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.
  Reply With Quote

Old   June 9, 2004, 16:34
Default Re: one Dimensional Navier Stokes Code
  #7
CFDtoy
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

  Reply With Quote

Old   June 12, 2004, 11:09
Default Re: one Dimensional Navier Stokes Code
  #8
Derek Jeter
Guest
 
Posts: n/a
Simple:

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

  Reply With Quote

Old   June 14, 2004, 12:37
Default Re: one Dimensional Navier Stokes Code
  #9
CFDtoy
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
  Reply With Quote

Old   September 24, 2010, 08:29
Default help
  #10
Member
 
kabilan.B
Join Date: Jul 2010
Location: chennai
Posts: 79
Rep Power: 16
kabilan is on a distinguished road
can u help me to write c program for solving1d heat equation in explicit form?
kabilan is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
1d navier stokes code domenico bruno Main CFD Forum 9 September 26, 2018 10:44
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 04:23
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 16:56
help: I am trying to solve Navier Stokes compressible and viscid flow Jose Choy Main CFD Forum 2 May 18, 2000 06:45


All times are GMT -4. The time now is 21:04.