r/CFD • • Jul 09 '18

[July] Personal experiences of using open source CFD projects; OpenFOAM, SU2, FVCOM, Basilisk (Gerris), etc.

As per the discussion topic vote, July's monthly topic is Personal experiences of using open source CFD projects; OpenFOAM, SU2, FVCOM, Basilisk (Gerris), etc.

26 Upvotes

44 comments sorted by

View all comments

Show parent comment

2

u/Rodbourn Jul 09 '18

Do you feel like you missed out on anything by not writing it yourself?

For the research itself none of the research involved spatial discretization, so it didn't make sense to write that from scratch, particularly since the spatial discretization needed was a moving target while developing the scheme itself. Actually, everything except for the spatial discretization was new work and I would have never finished trying to implement my own FEM that ran over MPI with the latest PETSc solvers. Regardless, FEniCS hardly hides the details from you, it just facilitates addressing the details.

Now that I'm working on commercializing the scheme spatial discretization is important, and the scheme has been cemented so the effort makes sense.

What made you pick fenics over say deal.ii?

FEniCS was more 'accessible' to me as a software developer, and I was working alone, so there wasn't someone I could directly ask questions from (my adviser(s) had heard of neither). In particular, FEniCS' use of the atlassian development tools, their open sourced book, FEniCS QA (retired in favor of a stack overflow clone allanswered), and perhaps most importantly the accessibility to the core developers who are exceptionally helpful. Deal.ii looks great, but it felt very similar to paraview when approaching it as a complete noob to the code. If you know the theory FEniCS is rather accessible.

2

u/Overunderrated Jul 09 '18

Now that I'm working on commercializing the scheme spatial discretization is important, and the scheme has been cemented so the effort makes sense.

So you're rewriting the whole thing to be independent of fenics? That's my kinda jam =)

I would have never finished trying to implement my own FEM that ran over MPI with the latest PETSc solvers

Yeah, I very intentionally kept a barrier between petsc and my own code. I don't like how they try to force it as a framework onto users, i.e. they want you to write your code in petsc, when all I really want is the numerical linear algebra stuff.

It's such a monumentally useful library (toolkit? framework?) but man does it have some awkward design decisions. Void pointers everywhere.

1

u/Rodbourn Jul 09 '18

Yeah, I very intentionally kept a barrier between petsc and my own code.

That is something FEniCS has done very well I think.

1

u/Rodbourn Jul 09 '18

toolkit? framework?

Loosely, I think it's a framework when it imposes architectural decisions and a library when it does not. FEniCS would very much be a framework for FEM.