CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Morphology Divergence of a boundary patch field

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 26, 2008, 11:11
Default Hi all I am going to couple
  #1
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi all

I am going to couple a sediment transport evaluation with a morphological updating of the sediment bed. In contrast to the flow-equations the problem is purely 2-dimensional, 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 2D-mesh and everything is calculated on that. If so, are there any routines to do so in OF or does it require some "home-cooking"? 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 x-y plane.

Thank you very much for any of your help or tricks

/ Niels

[1] http://vtchl.uiuc.edu/~liu19/publica..._ewri_2006.pdf
scleakey likes this.
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   July 3, 2008, 06:54
Default Hi All I am considering to
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi All

I am considering to change my tactics a little bit, thus right now I am working with primitivePatchInterpolation in OF-1.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 Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   July 3, 2008, 09:04
Default Sorry, I may be out of the flo
  #3
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Sorry, I may be out of the flow of discussions, but do you know about the Finite Area Method? It is implemented for a 2-D FVM on a curved surface in 3-D 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
hjasak is offline   Reply With Quote

Old   July 3, 2008, 10:48
Default Hi Hrv Thanks for the answe
  #4
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
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 Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   July 3, 2008, 12:18
Default what I did is to do a one-to-o
  #5
liu
Senior Member
 
Xiaofeng Liu
Join Date: Mar 2009
Location: State College, PA, USA
Posts: 118
Rep Power: 17
liu is on a distinguished road
what I did is to do a one-to-one 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 wave-like 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): 203-217
__________________
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/
liu is offline   Reply With Quote

Old   July 3, 2008, 13:18
Default Hi Xiaofeng Yes, I am indee
  #6
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Xiaofeng

Yes, I am indeed going to solve the Exner equation, but as I am going to look at self-formed 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 Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   July 7, 2008, 12:13
Default Hi Xiaofeng, Hrv and others
  #7
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Xiaofeng, Hrv and others

@Xiaofeng:
I have tried locating your article, but I have only been able to find it on your web-page. 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 Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   February 22, 2010, 06:39
Default
  #8
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
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
ngj is offline   Reply With Quote

Old   May 6, 2011, 09:30
Default
  #9
Senior Member
 
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 18
Arnoldinho is on a distinguished road
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.6-ext.
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.
Arnoldinho is offline   Reply With Quote

Old   May 18, 2011, 10:27
Default
  #10
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
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 pre-defense version is available. If interested, please send me an email.

Best regards

Niels
ngj is offline   Reply With Quote

Old   October 5, 2011, 13:33
Default
  #11
Senior Member
 
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 18
Arnoldinho is on a distinguished road
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:
solve
( fam::ddt(hb) == - 1/(1-n) * fam::div(phi, x) )
with hb beeing the elevation change and phi the flux over the edges coming from linearEdgeInterpolate(qb) & aMesh.Le(). So what does x have to be in this case? Sorry for asking this kind of presumably simple question, but I am really blockhead at the moment...

Arne
Arnoldinho is offline   Reply With Quote

Old   October 14, 2011, 11:24
Default
  #12
liu
Senior Member
 
Xiaofeng Liu
Join Date: Mar 2009
Location: State College, PA, USA
Posts: 118
Rep Power: 17
liu is on a distinguished road
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.
liu is offline   Reply With Quote

Old   October 14, 2011, 11:33
Default
  #13
Senior Member
 
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 18
Arnoldinho is on a distinguished road
Thanks for your answer Liu,

although I'm not sure what you mean...

Quote:
Remember Exner equation is a 2D eqn (the elevation is what you want to calculate).
I thought FAM is working in 2D, so what's wrong about fam:: and fac::?

Arne
Arnoldinho is offline   Reply With Quote

Old   April 19, 2013, 04:03
Default
  #14
aka
New Member
 
Getnet
Join Date: Aug 2011
Location: LSU
Posts: 20
Rep Power: 15
aka is on a distinguished road
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.
aka is offline   Reply With Quote

Old   April 20, 2013, 05:01
Default
  #15
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Aka,

It is a well know problem, especially for non-scour 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
ngj is offline   Reply With Quote

Old   April 22, 2013, 16:03
Default
  #16
aka
New Member
 
Getnet
Join Date: Aug 2011
Location: LSU
Posts: 20
Rep Power: 15
aka is on a distinguished road
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 Adam-Bashforth 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
aka is offline   Reply With Quote

Old   April 22, 2013, 16:10
Default
  #17
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
No, I merely had three files, which I called something like flux, flux0 and flux00, and then I implemented all of the book-keeping 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
ngj is offline   Reply With Quote

Old   May 7, 2013, 14:26
Default
  #18
aka
New Member
 
Getnet
Join Date: Aug 2011
Location: LSU
Posts: 20
Rep Power: 15
aka is on a distinguished road
Thanks Niels, now I have got a working Adam-Bashforth 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
aka is offline   Reply With Quote

Old   June 20, 2014, 04:14
Default
  #19
New Member
 
Detian Liu
Join Date: Mar 2013
Location: Beijing, P.R.China
Posts: 20
Rep Power: 13
Detian Liu is on a distinguished road
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
Detian Liu is offline   Reply With Quote

Old   November 4, 2014, 10:47
Default
  #20
Member
 
Fei Fan
Join Date: Jul 2013
Location: NanJing, China
Posts: 54
Rep Power: 13
Fanfei is on a distinguished road
Quote:
Originally Posted by ngj View Post
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
Hei Niels
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 of-3.1-extend, 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
Fanfei is offline   Reply With Quote

Reply


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
Given field does not correspond to patch david OpenFOAM Bugs 2 January 29, 2009 14:24
Gamma field on boundary patch tom OpenFOAM Post-Processing 0 March 23, 2008 07: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


All times are GMT -4. The time now is 16:30.