Quiz: Get ready to OpenFOAM Part-II?

This is a basic test to help you in self-assessment and another way of imparting training by question-answer approach.

Get Started!
  1. Question 1 of 21

    1. Which of the following statement in OF can be used to solve 1D transient heat conduction?

    • That's right! The equations mentioned refers to Euler implicit scheme for discretization of transient term and implicit, explict and CrankNicholson scheme for discretization of Laplacian term. Similarly, Transient Navier-Stokes equation can be represented in OpenFOAM syntax as [solve (fvm::ddt(rho, U) + fvm::div(phi, U) - fvm::laplacian(mu, U) == fvc::grad(p) );] Note terms separated by comman inside () denotes multiplication.

    • That was incorrect! The equations mentioned refers to Euler implicit scheme for discretization of transient term and implicit, explict and CrankNicholson scheme for discretization of Laplacian term. Similarly, Transient Navier-Stokes equation can be represented in OpenFOAM syntax as [solve (fvm::ddt(rho, U) + fvm::div(phi, U) - fvm::laplacian(mu, U) == fvc::grad(p) );] Note terms separated by comman inside () denotes multiplication.

    Next »Check My Answer!
  2. Question 2 of 21

    2. A 7th power velocity profile at inlet can be applied using boundary condition type

    • Nice! codedFixedValue can be used to generate boundary types on-the-fly.

    • codedFixedValue can be used to generate boundary types on-the-fly.

    Next »Check My Answer!
  3. Question 3 of 21

    3. Swirl at the inlet of a flow domain can be specified using

    • Excellent! Swirl is needed to be specified in the flow at the outlet from a fan is to be simulated without actually modeling the fan.

    • Not Quite. cylindricalInletVelocity boundary condition describes an inlet vector boundary condition in cylindrical co-ordinates given an axis, origin, rpm, axial and radial velocity

    Next »Check My Answer!
  4. Question 4 of 21

    4. The estimation of radial stress in a thick cylinder can be done using solver

    • You got it right! Structural stress calculations dominated by Finite Element techniques can also be solved using Finite Volume methods which is the core of OpenFOAM.

    • That was an incorrect answer! Structural stress calculations dominated by Finite Element techniques can also be solved using Finite Volume methods which is the core of OpenFOAM - elasticSolidFoam.

    Next »Check My Answer!
  5. Question 5 of 21

    5. Symmetric boundary condition refers to

    • Correct! Symmetry refers to zero gradient for all the field variable: velocity, pressure, temperature, concentration ...

    • That was an incorrect answer! Symmetry refers to zero gradient for all the field variable: velocity, pressure, temperature, concentration ...

    Next »Check My Answer!
  6. Question 6 of 21

    6. The variable arrangement used in OpenFOAM solvers are

    • Correct! In a co-located scheme, pressure and velocity are both stored at cell centers. An interpolation scheme is used to compute the face values of pressure from the cell values, e.g. Rhie Chow Interpolation Algorithm

    • In a co-located scheme, pressure and velocity are both stored at cell centers. An interpolation scheme is used to compute the face values of pressure from the cell values. e.g. Rhie Chow Interpolation Algorithm

    Next »Check My Answer!
  7. Question 7 of 21

    7. A known heat flux can be applied using boundary condition

    • Right! q'' = -k dT/dx. A fixed gradient boundary condition appropriately scaled by thermal conductivity of the solid or fluid zone will serve the purpose.

    • That was an incorrect answer! q'' = -k dT/dx. A fixed gradient boundary condition appropriately scaled by thermal conductivity of the solid or fluid zone will serve the purpose.

    Next »Check My Answer!
  8. Question 8 of 21

    8. IOobject:: MUST_READ tell solver to

    • You got it! MUST_READ, NO_READ, MUST_READ_IF_MODIFIED are some of the values that can be assigned to IOobject as far as reading of variable is concerned.

    • That was an incorrect answer! MUST_READ specifies "must read the field variable at first time step".

    Next »Check My Answer!
  9. Question 9 of 21

    9. Approach to solve the continuity and momentum equations in OpenFOAM is

    • Yes. You got it right! This was a simpler one! The segregated approach requires equations to be formulated for each dependent variable and solved sequentially. CFX is a coupled solver.

    • That was an incorrect answer! The segregated approach requires equations to be formulated for each dependent variable and solved sequentially. CFX is a coupled solver.

    Next »Check My Answer!
  10. Question 10 of 21

    10. The keywords 'owner' and 'neighbour' are applicable to

    • You are right! An internal face is a common planar boundary between two (and only two) adjacent cells or elements. For each internal face, OpenFOAM designates one adjoining cell to be the face owner and the other to be the neighbour. The information is stored in files of same names in folder 'plyMesh'.

    • That was an incorrect answer! An internal face is a common planar boundary between two (and only two) adjacent cells or elements. For each internal face, OpenFOAM designates one adjoining cell to be the face owner and the other to be the neighbour. The information is stored in files of same names in folder 'polyMesh'.

    Next »Check My Answer!
  11. Question 11 of 21

    11. pointField<Type> such as pointFieldScalar [Type = Scalar] or pointFieldVector [Type = Vector] defined

    • Excellent! OF primarily defines a property at the cell centres but often it is needed to store at the cell faces and cell vertices. volField = A field defined at cell centres; surfaceField = A field defined on cell faces; pointField = A field defined on cell vertices.

    • That was an incorrect answer! OF primarily defines a property at the cell centres but often it is needed to store at the cell faces and cell vertices. volField = A field defined at cell centres; surfaceField = A field defined on cell faces; pointField = A field defined on cell vertices.

    Next »Check My Answer!
  12. Question 12 of 21

    12. Central Difference Scheme (CDS) used to integration of convection term over a control volume

    • Good! This was an easier one! Central difference scheme as the name suggests is based on valued at the centres of the neighbouring cells on both side of the face.

    • That was an incorrect answer! Central difference scheme as the name suggests is based on valued at the centres of the neighbouring cells on both side of the face.

    Next »Check My Answer!
  13. Question 13 of 21

    13. can be expressed in OF syntax as

    • Correct! The comma inside parenthese () indicates multiplication.

    • That was an incorrect answer! The comman inside parenthese () indicates multiplication.

    Next »Check My Answer!
  14. Question 14 of 21

    14. Primitive shape(s) available for specifiying regions for mesh refinment in snappyHexMesh is/are

    • Correct!

    • Only sphere, box, cylinder or combination of these shapes can be used.

    Next »Check My Answer!
  15. Question 15 of 21

    15. The correct definition of hex block shown below is

    • Correct! The right hand system needs to be followed to avoid negative volume! While looking from inside the block towards the face, the order of vertices should be counter clock-wise (CCW).

    • That was an incorrect answer! While looking from inside the block towards the face, the order of vertices should be counter clock-wise (CCW).

    Next »Check My Answer!
  16. Question 16 of 21

    16. Boundary condition 'turbulentInlet' specifies

    • Correct! As the name suggests!

    • That was an incorrect answer! There are various ways to specify turbulent at the inlet boundary. This methods uses the classical definition of local velocity, v = v + v' where v' is the fluctuating component.

    Next »Check My Answer!
  17. Question 17 of 21

    17. The boundary condition 'flowRateInletVelocity' can be used to specify

    • Correct! Velocity is derived internally from the flux (volumetric or mass-based),by dividing area of the patch where direction of flow is assumed to be normal to the patch.

    • That was an incorrect answer! Velocity is derived ineternally from the flux (volumetric or mass-based),by dividing area of the patch where direction of flow is assumed to be normal to the patch.

    Next »Check My Answer!
  18. Question 18 of 21

    18. Initial conditions for U, T, p ... is read by header file

    • You are right! This was a simpler one!

    • That was an incorrect answer! As the name suggest, it is createFields.H!

    Next »Check My Answer!
  19. Question 19 of 21

    19. Variables U, p, T, DT ... are defined in file

    • Correct! The header file which defines the variables also reads the initial conditions.

    • That was an incorrect answer! The header file which defines the variables also reads the initial conditions.

    Next »Check My Answer!
  20. Question 20 of 21

    20. dimensionedScalar DT ( transportProperties.lookup("DT") ); instructs the solver to

    • Correct! It was easy, right!

    • That was an incorrect answer! dimensionedScalar, DT, transportProperties are standard keywords in OF.

    Next »Check My Answer!
  21. Question 21 of 21

    21. Temperature field T is an instance of object

    • Good Job! T is a scalar and defined at centre of the cells.

    • That was incorrect! T is a scalar and defined at centre of the cells.

    Next »Check My Answer!


This is Part-II of the set of quizzes being developed on OpenFOAM-related applications including ParaView, GMSH, SALOME.

Click here to access the Part-I of this series of online quiz!


This online test is based on fluid mechanics and methods of finite volume simulations in OpenFOAM / ParaView. The utilities available in OpenFOAM is covered and some hidden / not so obvious features are being brought forward.

Short Quiz on OpenFOAM: Part-II

Your score and Ranking:

Learn More

Search the categorized information of the main page and you will find the effort worth it. In case you wish to get any specific information added or have any suggestions, do let us know.


Click here to access the online quiz on Finite Element Methods!


Go to Home page.