geodynamics / aspect

A parallel, extensible finite element code to simulate convection in both 2D and 3D models.
https://aspect.geodynamics.org/
Other
224 stars 235 forks source link

Status of the Volume of Fluid implementation #3186

Open bangerth opened 5 years ago

bangerth commented 5 years ago

In one of those bizarre turns at workshops, I spent twenty minutes talking to someone from a completely different field about the volume of fluid implementation in ASPECT today. This also made me think about the current status of that work.

In particular:

With these limitations, it seems unclear to me that this feature will eventually be very useful to a broader community -- which was, of course, the goal of the SI2 program that funded the VoF development :-)

@egpuckett, @class4kayaker: Do you have a plan to address these things? How should we move forward with the VoF implementation?

In reference to #835.

class4kayaker commented 5 years ago
bangerth commented 5 years ago

@egpuckett and I just had a long conversation. Here's what we resolved:

This at least addresses the lack of a cookbook showing the method. That leaves two issues:

Absent finding funding for @class4kayaker, we don't have a solution for these.

bangerth commented 4 years ago

@egpuckett -- have you had a chance to think about the cookbook some more?

egpuckett commented 4 years ago

@bangerth Yes ... In fact Jon has made an excellent draft with superb computations and I have edited it. Now he has added some more edits and data and it is sitting in my inbox. I am the bottleneck. (See below.)

I want to say that the results compare extremely favorably on the van Keken problem to when one uses compositional fields and I am eager to have everyone who wrote the van Keken pages see it.

I don't know whether to take the remainder of what I am going to write here offline or not. You can let me know about future such remarks. The reason I haven't moved faster on this is me and the doubled or perhaps tripled workload associated with CV19.

The city of Davis is under a shelter in place order. No one has been allowed on campus since a week ago or so and no nonessential personnel are allowed on until at least April 7. There is no guarantee that we'll be able to return to campus then. What is certain is that starting March 30 we will begin the Spring Quarter (SQ) completely online - everyone at UCD who is teaching.

This is finals week for our Winter Quarter. We could not have an in person final. My TA and I just created and gave an online final on Tuesday 6:00 - 8:00 PM to 67 students. My TA is running fever and I am going to contact him and suggest he seek medical help. There are at least 67 additional Final Programming Project papers he was going to grade. Then I have to grade another problem for 67 students and assign final grades. (There's more, but I won't go into detail here.)

I just got out of a two hour Zoom meeting with my colleagues in the Math Department discussing the VERY large number of options for delivering instruction online for SQ. The amount of work to prepare to teach a class of 95 students by then is enormous. I've had two Zoom meetings today and another two hour online exam tomorrow morning.

Anyway, I am the bottleneck, with respect to the Cookbook. I really want one last pass at the Cookbook before Jon makes a PR. If you want to see it Jon or I can give you access to the branch it's on. In fact I believe it is public on my GitHub page

VOF_VAN_KEKEN_COOKBOOK

If you want that branch, let me know. I have to pull Jon's branch and then push his new material to my branch.

However, I would REALLY like to make my final best effort and then do the PR. I'm happy to have you look at it now, but I would like you to wait to make comments until I'm finished with my final edits and then we make the PR. I was hoping to do it this morning, but things just keep changing so quickly here.

I hope to have it done in a few days. Perhaps even tomorrow, but I can't make promises. Life keeps changing. :-)

Sorry for what might sound like a bunch of excuses.

There is nothing I would treasure more right now than to have a beer with you and all of our ASPECT colleagues!

I hope everyone and their loved ones are safe and healthy!

egpuckett commented 4 years ago

@bangerth

VOF_VAN_KEKEN_COOKBOOK

is now current with Jon's branch. I am planning to edit some now. No promises when I finish. My students are in constant contact for various reasons.

bangerth commented 4 years ago

@egpuckett -- no worries. I don't need it today :-) All I needed to know is that something is happening, there is no urgency is getting it reviewed and commented on today :-))

egpuckett commented 4 years ago

@bangerth Well you got it today. :-) The testers won't run, but do you need them to. Anyway I look forward to you thoughts on the quality of the results.

Best Wishes,

bangerth commented 4 years ago

@egpuckett -- are you asking me to review the current state? Could you make it into a regular pull request?

egpuckett commented 4 years ago

I asked Jon to make it a regular PR last week, or whatever 4 days ago was. It's PR#3425.

It didn't pass the test at first. (It is apparently still not passing the tests, I don't know why.) Timo made some comment. Jon wrote to me

Looking at the case, I saw that it was a case of the tests not having permission to run. While checking I noted that there was a modification outside of the edits to the manual, so I deleted that, and did a rebase.

and then

We need someone with permissions to authorize running the tests, but given that we do not touch the actual source code, they may decide not to run them.

I gather we can't 'assign' a person (e.g. you) review our PR. I was not sure how to let you know we had made it. I guess mentioning it in this Issue / Discussion didn't work.

Well no harm done. I just filed final grades for last quarter, so it would have been difficult to participate in a Review Discussion before now.

Now all I have to do is figure out how to deliver instruction online via Zoom to 95 students starting Monday. If you have any suggestions, I would be grateful for them. (It's Sophomore Linear Algebra.)

egpuckett commented 4 years ago

@bangerth The VOF cookbook #3425 has been reviewed by @naliboff He and @class4kayaker are ready to merge. I asked that they wait until I double check what changes John Naliboff made to the cookbook in the ASPECT Manual, since I wrote the final edit of the cookbook and want to see what is different. (John says he only made minor edits, like commas and that sort of thing.) I'm part way through and I have promised myself to finish before the end of the Hackathon and give John Naliboff my blessings to merge it. I suspect you are too busy right now to read it. However, I would be grateful if at some point you would find the time to do that. I think the results compare very favorably with the other van Keken benchmark results in the Manual.

A quick note on a related issue. @anne-glerum mentioned the instabilities with the free-surface algorithm that are being damped by adding diffusion. I think the VOF method should be able to ameliorate the instabilities, since it was developed at LLNL to work in ALE codes there and then used by Hirt and Nichols at LANL to model free-surfaces. When Anne has the time I plan to look at this with her and work on it in 2D by asking @class4kayaker questions when I need help. I am committed to getting VOF into 3D and curvilinear grids and coming up to speed so that I can support it. This will take some time, but I promise the ASPECT community will benefit from having VOF in ASPECT.