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

dirichelet boundary conditions for hyperbolic problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2015, 06:59
Cool dirichelet boundary conditions for hyperbolic problem
  #1
Senior Member
 
Join Date: Jun 2010
Posts: 111
Rep Power: 16
Hooman is on a distinguished road
Hi,

I am solving a set of 1D hyperbolic equation for a variable density flow. So far I have been using averaging to discretise p and v at the boundary. At the boundaries I have been using linear extrapolation to p and v at the left and right boundaries. For instance, for velocity at the left boundary I have used
vw = v(1) - 2*v(2)
where v(1) and v(2) represent the first and second nodes from the left boundary.
To impose the Dirichlet boundary conditions, I have either just set
vw = BC or
vw = BC - 2*v(2)
I think this is what is the virtual node approach (?)
The problem I have with this method is that as I increase my number of nodes I get alot of fluctuations as if a wave reaches the boundary and is reflected back. I am looking for an easy fix to the problem. I tried using up-winding but still have the same problem. Please help if this is your area of expertise.

Thank you in advance
Hooman is offline   Reply With Quote

Old   August 9, 2015, 08:05
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Hooman View Post
Hi,

I am solving a set of 1D hyperbolic equation for a variable density flow. So far I have been using averaging to discretise p and v at the boundary. At the boundaries I have been using linear extrapolation to p and v at the left and right boundaries. For instance, for velocity at the left boundary I have used
vw = v(1) - 2*v(2)
where v(1) and v(2) represent the first and second nodes from the left boundary.
To impose the Dirichlet boundary conditions, I have either just set
vw = BC or
vw = BC - 2*v(2)
I think this is what is the virtual node approach (?)
The problem I have with this method is that as I increase my number of nodes I get alot of fluctuations as if a wave reaches the boundary and is reflected back. I am looking for an easy fix to the problem. I tried using up-winding but still have the same problem. Please help if this is your area of expertise.

Thank you in advance

If you have Dirichlet B.C.s you need just to set values at one boundary, in your case the left one.
I don't understand why you want to use extrapolation...no ghost points are needed
FMDenaro is online now   Reply With Quote

Old   August 9, 2015, 08:14
Default
  #3
Senior Member
 
Join Date: Jun 2010
Posts: 111
Rep Power: 16
Hooman is on a distinguished road
Hi,
Thank you, that is what I had done originally but it caused fluctuations at the boundary. Therefore, after searching literature I found virtual nodes, and like you said it did not help.
If I did not have a Dirichlet BC, and I just needed to define the left boundary would it be correct to use the extrapolation? I am in particular, having problems with my pressure BC, I have come across some papers where they simply use
pw = p(1) or pe = p(end)
Hooman is offline   Reply With Quote

Old   August 9, 2015, 08:31
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Hooman View Post
Hi,
Thank you, that is what I had done originally but it caused fluctuations at the boundary. Therefore, after searching literature I found virtual nodes, and like you said it did not help.
If I did not have a Dirichlet BC, and I just needed to define the left boundary would it be correct to use the extrapolation? I am in particular, having problems with my pressure BC, I have come across some papers where they simply use
pw = p(1) or pe = p(end)

no, for hyperbolic equations the BC.s are dictated by the direction of the characteristic lines. Thus, extrapolation at the left boundary can be used only if you have a wave coming from the interior and going toward the left boundary.
If you have Euler equation and subsonic flows, you have 2 characteristics coming from the left boundary and going into the interior and 2 Dirichlet conditions are required, 1 characteristic is from the interior and you can use extrapolation for that condition.
If your flow is supersonic the 3 characteristics require 3 Dirichlet BC.s
FMDenaro is online now   Reply With Quote

Old   August 12, 2015, 18:26
Default
  #5
Senior Member
 
Join Date: Jun 2010
Posts: 111
Rep Power: 16
Hooman is on a distinguished road
Thank you.
Hooman is offline   Reply With Quote

Reply

Tags
boundary condition, dirichlet, discretization, extrapolation, hyperbolic


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
Setting rotating frame of referece. RPFigueiredo CFX 3 October 28, 2014 05:59
Radiation interface hinca CFX 15 January 26, 2014 18:11
Problem with Periodic Boundary Conditions Help!!! otsigun FLUENT 0 July 11, 2013 04:20
Boundary Conditions problem o_mars_2010 Main CFD Forum 2 July 8, 2013 03:10
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44


All times are GMT -4. The time now is 20:38.