
[Sponsors] 
June 26, 2008, 11:11 
Hi all
I am going to couple

#1 
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,553
Rep Power: 23 
Hi all
I am going to couple a sediment transport evaluation with a morphological updating of the sediment bed. In contrast to the flowequations the problem is purely 2dimensional, as the bed load transport is tangential to the bed. The change in bed level is proportional to the divergence of the transport field. My question is, how do I calculate the divergence of a field, which is basically a boundaryField? Is there some routines right there on the shelf in OF or should I consider doing something similar to [1], where the bed is mapped into a 2Dmesh and everything is calculated on that. If so, are there any routines to do so in OF or does it require some "homecooking"? If the latter, could you recommend any good literature on mesh mapping using arbitrary polygons. As in [1] it would probably be easiest to map to a xy plane. Thank you very much for any of your help or tricks / Niels [1] http://vtchl.uiuc.edu/~liu19/publica..._ewri_2006.pdf
__________________
Please note that I do not use the Friendfeature, so do not be offended, if I do not accept a request. 

July 3, 2008, 06:54 
Hi All
I am considering to

#2 
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,553
Rep Power: 23 
Hi All
I am considering to change my tactics a little bit, thus right now I am working with primitivePatchInterpolation in OF1.4.1. My question is whether it is correct or not that the faceToEdge interpolation is simply a matter of linear interpolation between the two faces which share the edge? If yes, would it then be a tremendous task to extend it to higher order upwind schemes? Thanks, Niels
__________________
Please note that I do not use the Friendfeature, so do not be offended, if I do not accept a request. 

July 3, 2008, 09:04 
Sorry, I may be out of the flo

#3 
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,748
Rep Power: 20 
Sorry, I may be out of the flow of discussions, but do you know about the Finite Area Method? It is implemented for a 2D FVM on a curved surface in 3D and available in SVN.
There should be a mention of it in some of my slides + I will definitely talk about it at the Workshop in Milan. Author: Zeljko Tukovic: I not simply advertising own stuff Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk 

July 3, 2008, 10:48 
Hi Hrv
Thanks for the answe

#4 
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,553
Rep Power: 23 
Hi Hrv
Thanks for the answer, I'll look into it and look forward to the presentation in Milan. I saw in another thread (2006) that the translation of Zeljko' Thesis was in working progress. Has this translation ended, if yes would it be possible to get a hold on? Thanks, Niels
__________________
Please note that I do not use the Friendfeature, so do not be offended, if I do not accept a request. 

July 3, 2008, 12:18 
what I did is to do a onetoo

#5 
Senior Member
Xiaofeng Liu
Join Date: Mar 2009
Location: State College, PA, USA
Posts: 118
Rep Power: 7 
what I did is to do a onetoone mapping, i.e., the bottem boundary is the the same as the 2D xy boundary. The reason is to reduce the loss of accuracy due to mapping. If you mesh is fine enough, the loss of accuracy will be minimum.
For sediment transport and morphology, I suppose you are solving Exner equation, which is the conservation of sediment in the bed. It's a wavelike equation. The morphological time scale is so small (except in the area of rapid scour/deposition) that you can solve it explicitly. The divergence can be calcualted via Green's theorem. I would like to see the FAM be used. Also see: X. Liu and M.H. García (2008). A 3D Numerical Model with Free Water Surface and Mesh Deformation for Local Sediment Scour. Journal of Waterway, Port, Coastal, and Ocean Engineering. 134(4): 203217
__________________
Xiaofeng Liu, Ph.D., P.E., Assistant Professor Department of Civil and Environmental Engineering Penn State University 223B Sackett Building University Park, PA 16802 Web: http://water.engr.psu.edu/liu/ 

July 3, 2008, 13:18 
Hi Xiaofeng
Yes, I am indee

#6 
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,553
Rep Power: 23 
Hi Xiaofeng
Yes, I am indeed going to solve the Exner equation, but as I am going to look at selfformed features, i.e. no presence of structures, I'll take your advise and solve it explicitly. The adoption of Green theorem was actual the reason for adopting 'primitivePatchInterpolation', but the FAM seems interesting, thus I'll do a compile of the dev and see what I can achieve.  Niels
__________________
Please note that I do not use the Friendfeature, so do not be offended, if I do not accept a request. 

July 7, 2008, 12:13 
Hi Xiaofeng, Hrv and others

#7 
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,553
Rep Power: 23 
Hi Xiaofeng, Hrv and others
@Xiaofeng: I have tried locating your article, but I have only been able to find it on your webpage. Is it in press? @All I have had a look at the finiteArea implementation, and I would say that it looks rather interesting, and I believe it would be straight forward to implement the evaluation of the Green' theorem. Though just to clarify things, I have a couple of questions: > void faMesh::calcLe() const This function calculates the normal to the edges, and the normal being tangential to the surface, correct? > Having the bed load, qB, on the faces, the flux over the edges would be: linearEdgeInterpolate(qB) & aMesh.Le(), with aMesh.Le coming from the above function, correct? > Boundary conditions I assume that boundary conditions should be set as in the hydrofoil case to calculate the edge normals correctly? (Especially in the case of cyclic boundaries). Thank you for you help so far, it is highly appreciated. / Niels
__________________
Please note that I do not use the Friendfeature, so do not be offended, if I do not accept a request. 

February 22, 2010, 06:39 

#8 
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,553
Rep Power: 23 
Hi all
I have now been working on the morphological updating routine, and I would just recommend to all of you to do it in the framework of FAM, as the methods implemented into FAM are tailored to the morphological updating problems. One feature is e.g. the filtering of the morphological response, which rewritten into differential form becomes easy as one can rely on the existing differential operators. Have fun Niels 

May 6, 2011, 09:30 

#9 
Senior Member
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 8 
Hi Niels,
it has been a quite long time since you responded to your own topic started here... As I have to implement a scour model in OpenFOAM as well now (after having done physical model tests), I'm also going to implement the Exner equation and use the automatic mesh motion algorithm in OF 1.6ext. Did you do your work using the FAM in the end? Could you give me a little hint on how to start implementing the equations? Unfortunately, the FAM seems to be rarely commented... Greetings, Arne BTW: Did you already finish your PhD? Last edited by Arnoldinho; May 18, 2011 at 10:37. 

May 18, 2011, 10:27 

#10 
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,553
Rep Power: 23 
Hi Arne
Yes, I have used the FAM framework, which offers some advances. It is a very long implementation, thus I can hardly put is simply into an email. The model description for sediment transport and morphology extends more than 20 pages. I have turned in my thesis and I will defend it on the 10th of June. After the defense, the thesis will be made available on our university web side. Until then only a predefense version is available. If interested, please send me an email. Best regards Niels 

October 5, 2011, 13:33 

#11  
Senior Member
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 8 
Hi Niels (and others),
I again have a question on solving the exner equation within the FAM framework. At the moment I'm struggling with some problems on incompatible dimensions in solving it... Could you help me out on the correct notation of the equation? Quote:
Arne 

October 14, 2011, 11:24 

#12 
Senior Member
Xiaofeng Liu
Join Date: Mar 2009
Location: State College, PA, USA
Posts: 118
Rep Power: 7 
Remember Exner equation is a 2D eqn (the elevation is what you want to calculate). One should also be careful with the stability since shocks could emerge where in reality the sediment pile will collapse.


October 14, 2011, 11:33 

#13  
Senior Member
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 8 
Thanks for your answer Liu,
although I'm not sure what you mean... Quote:
Arne 

April 19, 2013, 04:03 

#14 
New Member
Getnet
Join Date: Aug 2011
Location: LSU
Posts: 20
Rep Power: 5 
To all who worked Morphology with OpenFOAM,
I have incorporated a Morphology scheme in OpenFOAM by using fam in the two dimensional bed boundary mesh. My scheme is running without any problems, however I am getting oscillations/numerical instabilities while the dune/ripple is forming. I am solving the exner equation explicitly (fac) by taking the divergence of the bedload flux and other contributions. Do you guys use explicit or implicit scheme while solving the exner equation either in time or space? Thanks a lot ! Getnet Last edited by aka; April 19, 2013 at 10:38. 

April 20, 2013, 05:01 

#15 
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,553
Rep Power: 23 
Hi Aka,
It is a well know problem, especially for nonscour problems, so you might need a set of stabilising mechanisms, such as sand slide and numerical filtering. I am solving the Exner equation explicitly  at least I have not found a way of performing the time integration implicitly. Kind regards Niels 

April 22, 2013, 16:03 

#16 
New Member
Getnet
Join Date: Aug 2011
Location: LSU
Posts: 20
Rep Power: 5 
Thanks Niels, I will read about numerical filtering and sand slide if I am able to include them easily in my model.
I am reading your dissertation about the AdamBashforth scheme you used for explicit time integration based on 'F'. did you use the .oldTime () and old.Time().oldTime() functions to access your previous time step values? I tried using those functions and I was getting a 0 value for the time integrated value of the bed change with time though "F" is not zero in each time. did you initialize a zero value for the previous time steps at the start of the simulation when "i" becomes 1 and 2. Thanks a lot! Getnet 

April 22, 2013, 16:10 

#17 
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,553
Rep Power: 23 
No, I merely had three files, which I called something like flux, flux0 and flux00, and then I implemented all of the bookkeeping myself.
The main reason for this is that I used period averaging, which could easily consist of 1000 time steps per wave period. Yes, at the beginning of the simulation, everything is initialised to 0. Kind regards Niels 

May 7, 2013, 14:26 

#18 
New Member
Getnet
Join Date: Aug 2011
Location: LSU
Posts: 20
Rep Power: 5 
Thanks Niels, now I have got a working AdamBashforth scheme. I put both third and fourth order schemes. Do you think there would be any advantages or disadvantages if I proceed with the fourth order scheme?
Thanks, Getnet 

June 20, 2014, 04:14 

#19 
New Member
Detian Liu
Join Date: Mar 2013
Location: Beijing, P.R.China
Posts: 20
Rep Power: 3 
Dear Niels,
I am a new comer to OpenFOAM, I am very eager to know how to realize the sand slide in OpenFOAM，could you please give me some advice? Thanks for all the help! Best Wishes! Detian 2014.6.20 

November 4, 2014, 10:47 

#20  
New Member
Fei Fan
Join Date: Jul 2013
Location: NanJing, China
Posts: 22
Rep Power: 3 
Quote:
I have used FAM to solve Exner equation. while the program run, there is a problem. It need creat famesh in constant file, but I couldn't find examples of FAM in of3.1extend, so i didn't kow how to do that. Could you give me some hints about how to creat a famesh. Best regards Fan Fei 

Thread Tools  
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Given field does not correspond to patch  david  OpenFOAM Bugs  2  January 29, 2009 14:24 
Gamma field on boundary patch  tom  OpenFOAM PostProcessing  0  March 23, 2008 08:56 
Boundary condition vector field gradient from two sides of patch face  quba  OpenFOAM  0  December 12, 2007 06:26 
Projection of field onto patch  tehache  OpenFOAM Running, Solving & CFD  0  May 7, 2007 03:24 
velocity field divergence?  gh  FLUENT  0  July 6, 2005 12:10 