|
[Sponsors] |
Questions regarding scalar transport equation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 3, 2014, 23:52 |
Questions regarding scalar transport equation
|
#1 |
New Member
Join Date: Sep 2014
Posts: 15
Rep Power: 12 |
Hi!
My problem is simple scalar 1-D transport equation which have two conditions, one inlet BC and one initial condition: dU/dt+dU/dx=0, 0 <= x <= 1, 0 <= t <= T U(0,x)=f(x), 0 <= x <= 1 U(t,0)=g(t), 0 <= t <= T Theoretically we can solve this equation using only these two conditions. But openFoam asks me to set outlet BC (where x=1). I can't do this because I want to solve the equation without this BC! So what should I set for the outlet boundary in 0/U "boundaryField"? |
|
October 4, 2014, 21:19 |
|
#2 |
New Member
Join Date: Sep 2014
Posts: 15
Rep Power: 12 |
It looks like that I need advection outlet BC (=no-reflection BC). Is that true?
|
|
October 5, 2014, 06:07 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Franko and welcome to the forum!
I'll try to answer you with a rephrased problem description and respective questions. Imagine:
Bruno |
|
October 5, 2014, 08:46 |
|
#4 |
New Member
Join Date: Sep 2014
Posts: 15
Rep Power: 12 |
Wyldcat, thanks for your answer!
I want to say that I know not only piece of a string initially, I know all about the string initially because the other end is fixed at x=1. (the domain of my equation: 0 <= x <= 1 and function f(x) has the same domain of definition) So the answer to all your questions above is "x=1". Also I am a bit confused because in my tutorial words "string" and "string equations" usually referred to the equations with the second order derivatives (wave equations), but my equation "dU/dt+dU/dx=0" has only first order derivatives, it is simple "advection equation". Maybe we can call it a string, I don't know... |
|
October 5, 2014, 09:57 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Franko,
I was using the "string" as a literal piece of string as an example, possibly affected by gravity. Essentially I was trying to visualize this problem as if it was a pendulum being grabbed at one end (where there is no weight) was being moved over time with "U(t,0)=g(t)". Now that I think more about it, I guess I wasn't able to properly create a visual analogous example... should have thought right out in using a pendulum as the example. Forgetting the visual example I was trying to think about, the conditions you're defining result in this:
Code:
dU(t,1)/dx = 0 Either way, there is an example of this in the tutorial case "basic/scalarTransportFoam/pitzDaily". The only difference is that "g(t)" is always 10 for "U", and 1 for "T" (as in field, not time) in that example. If we try to go back to the visual example I was trying to describe:
Best regards, Bruno |
|
October 21, 2014, 17:54 |
|
#6 |
Senior Member
Yuehan
Join Date: Nov 2012
Posts: 142
Rep Power: 14 |
Bruno, You are actually giving a good example.
If you decompose a 2nd order wave equation, you get two 1st order advection equations. Mathematically speaking, he seems to want to solve an initial value problem, but OpenFOAM is designed to solve boundary value problems. However, if you want to solve an initial value problem, you must use at least a semi infinite domain. But he seems to only care about what is happening between 0 and 1, which makes me confused. So my suggestion is that you make sure what kind of problem you want to solve in the first place. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question about scalar transport | osimonsimon | OpenFOAM Running, Solving & CFD | 33 | August 21, 2020 11:45 |
Calculation of the Governing Equations | Mihail | CFX | 7 | September 7, 2014 07:27 |
UDF Transport equation for transition momentum thickness Reynolds number | Wantami | FLUENT | 0 | April 9, 2011 03:50 |
how solve a scalar equation with Fluent | tomik | FLUENT | 0 | January 5, 2006 07:38 |
transport equation for SGS scalar variance | chinthakindi | Main CFD Forum | 0 | April 27, 2004 10:26 |