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

Boundary conditions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 3, 2024, 07:02
Default Boundary conditions
  #1
Senior Member
 
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4
hunt_mat is on a distinguished road
How good are interpolating polynomials in CFD?

I'm working on a finite volume code, and I need to find the value of the density on the boundary and I only have the midpoint values. I thought about using the first three mid-point values to obtain a quadratic equation rho(x)=ax^2+bx+c, and then set x=0 to obtain the value at the boundary.

Does this sound reasonable?
hunt_mat is offline   Reply With Quote

Old   October 3, 2024, 08:09
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by hunt_mat View Post
How good are interpolating polynomials in CFD?

I'm working on a finite volume code, and I need to find the value of the density on the boundary and I only have the midpoint values. I thought about using the first three mid-point values to obtain a quadratic equation rho(x)=ax^2+bx+c, and then set x=0 to obtain the value at the boundary.

Does this sound reasonable?
But that would be an extrapolation…
I used to compute the value on a fiinite volume surrounding the node on the boundary.
FMDenaro is offline   Reply With Quote

Old   October 3, 2024, 17:11
Default
  #3
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,195
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
I would start from what you know on the boundary. If density is involved in your calculation (i.e., it isn't constant), and you don't already know it in a point, I expect you to know some other variable from which density can be desumed, like pressure and temperature.

Unless you are actually working out how to apply your boundary conditions in the first place... in that case, as mentioned by Filippo, do not extrapolate at higher order, ever. In FV codes, if some variable needs to be extrapolated, it is typically copied from the nearest cell center. But it depends from which boundary condition you are working on and the kind of code.

You need to tell more (kind of code, kind of bc, additional details on the boundary and scope of the task, etc.) in order to have a sharper suggestion.
sbaffini is offline   Reply With Quote

Old   October 9, 2024, 12:29
Default
  #4
Senior Member
 
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4
hunt_mat is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
But that would be an extrapolation…
I used to compute the value on a fiinite volume surrounding the node on the boundary.
This doesn't actually tell be anything. I've tried that method before, and it failed.
hunt_mat is offline   Reply With Quote

Old   October 9, 2024, 12:34
Default
  #5
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by hunt_mat View Post
This doesn't actually tell be anything. I've tried that method before, and it failed.



Describe the way you tried. I built a volume surrounding the node on the wall and computed the fluxes on the faces in the flow interior (no mass flux on the wall, of course)-
FMDenaro is offline   Reply With Quote

Old   October 9, 2024, 12:38
Default
  #6
Senior Member
 
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4
hunt_mat is on a distinguished road
Quote:
Originally Posted by sbaffini View Post
I would start from what you know on the boundary. If density is involved in your calculation (i.e., it isn't constant), and you don't already know it in a point, I expect you to know some other variable from which density can be desumed, like pressure and temperature.
I assume you're referring to some kind of constitutive equation, like an ideal gas. I don't have that unfortunately.

Quote:
Unless you are actually working out how to apply your boundary conditions in the first place... in that case, as mentioned by Filippo, do not extrapolate at higher order, ever. In FV codes, if some variable needs to be extrapolated, it is typically copied from the nearest cell center. But it depends from which boundary condition you are working on and the kind of code.
I've heard this from someone, can you tell me why?

Quote:
You need to tell more (kind of code, kind of bc, additional details on the boundary and scope of the task, etc.) in order to have a sharper suggestion.
I'm solving the set of PDEs:
v_t=u_h, u_t=(P_L(v)+zeta(v)/v*u_h)_h

Where v is specific volume and h denotes the amount of mass from x=0. I have stress-free conditions a P_L(v) and zeta(v) are functions of v.
hunt_mat is offline   Reply With Quote

Old   October 9, 2024, 12:41
Default
  #7
Senior Member
 
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4
hunt_mat is on a distinguished road
This is the method I used.
Attached Files
File Type: pdf isothermal_sintering.pdf (121.9 KB, 10 views)
hunt_mat is offline   Reply With Quote

Old   October 9, 2024, 12:45
Default
  #8
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by hunt_mat View Post
This is the method I used.

If I understand, you can write Eq.(8) on the boundary and solve it
FMDenaro is offline   Reply With Quote

Old   October 10, 2024, 05:27
Default
  #9
Senior Member
 
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4
hunt_mat is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
If I understand, you can write Eq.(8) on the boundary and solve it
I need to find the u_i on the cell interfaces. That implies I need to find them on the boundary. I thought that the extrapolation I did provided the appropriate extrapolation, or so I thought.
hunt_mat is offline   Reply With Quote

Old   October 11, 2024, 10:46
Default
  #10
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,195
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
I am not accustomed to this kind of problem but, I can only notice that:

1) You don't actually need a bc on v, you need v on the boundary because it is needed by the bc on u. Indeed, the volume integrated equation for v only has u as flux terms. If you have u on boundaries you can evolve v in any cell, it seems to me. Is this interpretation correct?

2) I know nothing about sintering, but not having a bc is weird. I would look better at some literature on the matter to find out how bcs are applied here.

3) In any case, if there isn't a bc, extrapolating the nearest cell value is just as good as using the second order interpolation, but it has the added benefit of not introducing any new maxima or minima. Introducing new maxima or minima trough bcs is an almost certain way to divergence (altough, there might be cases where this doesn't happen).
sbaffini is offline   Reply With Quote

Old   October 11, 2024, 12:55
Default
  #11
Senior Member
 
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4
hunt_mat is on a distinguished road
Quote:
Originally Posted by sbaffini View Post
I am not accustomed to this kind of problem but, I can only notice that:
Quote:
1) You don't actually need a bc on v, you need v on the boundary because it is needed by the bc on u. Indeed, the volume integrated equation for v only has u as flux terms. If you have u on boundaries you can evolve v in any cell, it seems to me. Is this interpretation correct?
The boundary condition for u on the boundary comes in the form of a Neumann condition, so you have du/dh on the boundary, this I used for the boundary conditions to get the u on the boundary from the stress free condition. This requires the information on v on the boundary
Quote:
2) I know nothing about sintering, but not having a bc is weird. I would look better at some literature on the matter to find out how bcs are applied here.
I have no idea what the boundary condition might be. All I know is that the total mass remains the same. I'm not sure what to use as a boundary condition. I could say that the mass flux through the boundary is zero, that will lead to dv/dh=0 on each boundary.
Quote:
3) In any case, if there isn't a bc, extrapolating the nearest cell value is just as good as using the second order interpolation, but it has the added benefit of not introducing any new maxima or minima. Introducing new maxima or minima trough bcs is an almost certain way to divergence (altough, there might be cases where this doesn't happen).
So I don't need to use my approach by fitting a quadratic?
hunt_mat is offline   Reply With Quote

Reply

Tags
finite volume method


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
reverse flow in centrifugal fan blades kalm CFX 20 December 2, 2023 07:25
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 08:30
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 09:44
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 07:28


All times are GMT -4. The time now is 12:05.