Difference between revisions of "Day 12"

From OpenFOAM Wiki
Jump to navigation Jump to search
Line 34: Line 34:
  
 
=[https://wiki.openfoam.com/Simulating_chocolate_by_Gavin_Tabor Modeling chocolate]=
 
=[https://wiki.openfoam.com/Simulating_chocolate_by_Gavin_Tabor Modeling chocolate]=
 +
 +
This tutorial is an exxcellent summary of all the information you will need to implement your own custom solvers or libraries in OpenFOAM by taking you through the implementation amongst others on the Casson model, which describes the flow of molten chocolate. The focus is on:
 +
 +
* header files
 +
* base types
 +
* fvMesh
 +
* GeometricField
 +
* IOobject and objectRegistry
 +
* Higher-level programming
 +
* fvc::, fvm:: operators
 +
* compilation
 +
* Boussinesq approximation
 +
* Casson model
 +
 +
=End of Day 12=
 +
 +
We arrived at the end of Day 12. By now you should be able to run not only simulations of real life problems, but you should have an extensive experience as well as knowledge on how to implement your own additional model, if your problem cannot be described by the standard models in OpenFOAM. Tomorrow we will com back with some tutorials on (conjugate) heat transfer and reacting flows. Until then take a break.

Revision as of 13:22, 21 September 2016

Welcome back to Day 12. Today we will continue to explore the possibilities OpenFOAM offers to extend the source code according to our needs. With this users are able to tackle all physical problems, which are described by partial differential equations. We will concentrate on implementing solvers, libraries as well as utilities.

  • applications
  • libraries
  • utilitites
  • function objects
  • material models
  • C++ funcionalities
  • debugging

Go back to "3 weeks" series.

Programming - introduction

This series of videos gives you an excellent introduction to programming in OpenFOAM from a C++ point of view. Starting with small handy utilities you will further expand your understanding of programming in C++ and OpenFOAM. The topics covered are:

  • C++ basics
  • compilation
  • code structure
  • starting point
  • testing

Programming part of the course by Håkan Nilsson

Here you will find a links to the course provided by Håkan Nilsson at Chalmers university as well as some selected pdfs on programming.

  • high level programming
  • implementation of an application
  • implementation of a turbulence model
  • implementation of a boundary condition
  • implementation of a function object
  • basics of C++
  • debugging in OpenFOAM

Modeling chocolate

This tutorial is an exxcellent summary of all the information you will need to implement your own custom solvers or libraries in OpenFOAM by taking you through the implementation amongst others on the Casson model, which describes the flow of molten chocolate. The focus is on:

  • header files
  • base types
  • fvMesh
  • GeometricField
  • IOobject and objectRegistry
  • Higher-level programming
  • fvc::, fvm:: operators
  • compilation
  • Boussinesq approximation
  • Casson model

End of Day 12

We arrived at the end of Day 12. By now you should be able to run not only simulations of real life problems, but you should have an extensive experience as well as knowledge on how to implement your own additional model, if your problem cannot be described by the standard models in OpenFOAM. Tomorrow we will com back with some tutorials on (conjugate) heat transfer and reacting flows. Until then take a break.