|
[Sponsors] |
How many boundary conditions do we need for the pressure? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 31, 2023, 04:02 |
|
#61 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
I suggest also to check if a grid refinement reduces these values. |
||
September 1, 2023, 23:47 |
|
#62 |
Member
Join Date: Apr 2021
Location: Finland
Posts: 41
Rep Power: 5 |
I'm still working on how the divergence error scales on different grids but I thought I'd ask a quick question about the local truncation error you mentioned.
In the Analysis of the local truncation error in the pressure-free projection method for incompressible flows: a new accurate expression of the intermediate boundary conditions paper its mentioned that the splitting error of the pressure free method can be estimated as efs = deltaT*[grad(phi)-grap(p)]-deltaT^2/2Re*div(grad(grad(p)) + O(deltaT^3) (equation 24). If first order implicit Euler is used for the diffusion term in the v* equation, does this then imply that I'm getting only the first order approximation of p i.e. grad(phi) = grad(p)? And if this is indeed the case, would the equation 24 splitting error reduce to efs = -deltaT^2/2Re*div(grad(grad(phi))). Of which the local truncation error part is LTE = efs/deltaT? |
|
September 2, 2023, 04:47 |
|
#63 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
Using an implicit scheme for the diffusive term would produce always the presence of the diffusive-like term in the error. You can simply check what happens for the implicit Euler scheme by following the procedure in my paper: in the CN scheme cancel the part at time tn and in the part at tn+1 use 1 instead of (1/2). The expression you get will be quite similar, the only difference is that since you use a first order accurate method, it makes no sense consider higher order terms in the efs. |
||
September 5, 2023, 00:50 |
|
#64 |
Member
Join Date: Apr 2021
Location: Finland
Posts: 41
Rep Power: 5 |
Following similar analysis for the Implicit Euler as the Crank-Nicholson show in the paper, this was the result:
efs = deltaT*(grad(phi)-grad(p)) - 1/(2*Re)*deltaT^2*div(grad(grad(p))= 1/(2*Re)*deltaT^2*div(grad(grad(phi))) + O(deltaT^3) leading to error proportional to O(deltaT^2). Is this correct now? It seems that the Crank-Nicholson option would exactly cancel this leading term. I hope the procedure was followed properly now Last edited by Winston Virtaus; September 5, 2023 at 01:09. Reason: small edit |
|
September 5, 2023, 05:31 |
|
#65 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
To confirm your result I should repeat all the procedure for the implicit Euler, but I see a coefficient 1/(2*Re), why? The implicit Euler should produce only 1/Re. |
||
September 5, 2023, 22:02 |
|
#66 |
Member
Join Date: Apr 2021
Location: Finland
Posts: 41
Rep Power: 5 |
I think it was due to some calculation error in the higher order terms.
However I could do a lower order approximation to the splitting error as which can be further reduced into assuming but I'm not exactly sure if the above assumption is correct. Then using the resulting split error would be Any thoughts? |
|
September 6, 2023, 05:02 |
|
#67 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
In my paper I distinguish the case of the continuous formulation from that of the discrete one (but only for the AB/CN scheme). Following the discrete approach, the implicit Euler scheme should introduce the first order error, according to what you get. |
|
September 7, 2023, 00:09 |
|
#68 |
Member
Join Date: Apr 2021
Location: Finland
Posts: 41
Rep Power: 5 |
Thanks for the confirmation!
The paper is indeed very comprehensive and rigorous. The time-discrete analysis was abit harder to follow due to the inverse operator so thats why I followed the continuous analysis. Its going to be interesting to see what kind of splitting error numbers I get when the error relation is postprocessed. The relation seems rather cheap to compute, is it customary to keep tracking it during runtime too? |
|
September 7, 2023, 05:08 |
|
#69 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
You should consider Eq.(26) as general infos for the discrete equations. In case of the implicit Euler equation, I would expect the splitting error in the form dt*O(LTE)= O(dt^2). But it is not customary to keep a trace of that during a run. The aim of the paper is to provide the framework and show the congruent accuracy order of the BCs for the intermediate velocity. |
||
September 7, 2023, 23:34 |
|
#70 |
Member
Join Date: Apr 2021
Location: Finland
Posts: 41
Rep Power: 5 |
Thanks! I'll take a look.
|
|
September 23, 2023, 18:30 |
|
#71 |
Member
Join Date: Apr 2021
Location: Finland
Posts: 41
Rep Power: 5 |
I did some more testing on the boundary conditions in a simpler test case to which a closed form solution is available:
Poisseule flow between infinite parallel plates at Re≈26.6
Is the divergence error now low enough compared to the velocity and pressure gradient errors? |
|
September 23, 2023, 18:41 |
|
#72 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
I suppose you have the height of 1m, the magnitude of the error seems quite congruent for a second order scheme. However, I would suggest to check further the BC at the inflow, there (and at the two corners), it appears some peaks. Since you are prescribing Dirichlet conditions both at inflow and outflow, I see a different distribution of the errors. |
||
September 24, 2023, 00:08 |
|
#73 | |
Member
Join Date: Apr 2021
Location: Finland
Posts: 41
Rep Power: 5 |
Quote:
Yes quite close, channel height was 0.2m So ideally i should expect a similar error pattern near both inlet and outlet? Its very well possible that there are still inconsistencies in the boundary conditions. Last edited by Winston Virtaus; September 24, 2023 at 00:08. Reason: quick edit |
||
September 24, 2023, 23:46 |
Enquiry: CFD Modeling of Bio-pesticide Sprayer Optimization for Agricultural Applicat
|
#74 |
New Member
Ogbe Idoko
Join Date: Sep 2023
Posts: 1
Rep Power: 0 |
I want to achieve the following objectives and need your guide Develop a simplified CFD model to simulate the bio-pesticide
sprayer application process. Analyze the spray pattern and droplet behaviour using the CFD model. Optimize the sprayer design and operational parameters to enhance spray coverage and droplet size distribution. Validate the CFD model by comparing the simulated spray characteristics with available experimental data or previous studies Question1: Which solver in OpenFoam is best for this ? Question 2: I have learn many tutorial and know how to do simulation based on the tutotial but can not find any on pesticide sprayer; what should I do |
|
September 26, 2023, 00:27 |
|
#75 | |
Member
Join Date: Apr 2021
Location: Finland
Posts: 41
Rep Power: 5 |
Quote:
Most likely an VOF-based solver like interFoam would be the way to go. These guys had some nice results with that solver: https://www.youtube.com/watch?v=jUOQwt6lWS8 |
||
October 8, 2023, 14:15 |
|
#76 |
Member
Join Date: Apr 2021
Location: Finland
Posts: 41
Rep Power: 5 |
It seems that the source of the error has something to do with the second derivative of pressure.
This time the inlet and outlet physical velocity boundary conditions are constructed via low order upwinding/downwinding and the normal velocity component is altered to achieve the target flowrate which leads to the situation where both the normal gradient of physical velocity and second derivative of pressure basically vanish. As result, something interesting happens to the errors:
I'm thinking the Poisson solver part is working properly, but the intermediate velocity step could need some tweaking to help cancel out the third derivative of pressure at the APM step. |
|
October 8, 2023, 14:51 |
|
#77 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Now seems working better, as further check you can see if the divergence error depends on a grid refinement as should be for the APM.
|
|
October 9, 2023, 23:33 |
|
#78 |
Member
Join Date: Apr 2021
Location: Finland
Posts: 41
Rep Power: 5 |
Thanks for the input!
Two different tests were performed to see the divergence error scaling:
It looks like there is still some inconsistency in the code. Last edited by Winston Virtaus; October 10, 2023 at 00:03. Reason: quick edit |
|
October 10, 2023, 04:52 |
|
#79 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
|
||
October 10, 2023, 10:27 |
|
#80 | |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
Quote:
|
||
Tags |
pressure b.c |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
What are the best settings for a channel flow simulation? | Ashkan Kashani | CFX | 3 | October 13, 2022 22:36 |
Fail to converge when solving with a fabricated solution | zizhou | FLUENT | 0 | March 22, 2021 07:33 |
Basic Nozzle-Expander Design | karmavatar | CFX | 20 | March 20, 2016 09:44 |
Problem in setting Boundary Condition | Madhatter92 | CFX | 12 | January 12, 2016 05:39 |
Error finding variable "THERMX" | sunilpatil | CFX | 8 | April 26, 2013 08:00 |