Skip to content

foamNewBC incorrect for Function1 member data

Summary

foamNewBC incorrect for Function1 member data. It is not possible to compile the default output.

Steps to reproduce

foamNewBC -f -v XYZ

wmake XYZ

Example case

N/A

What is the current bug behaviour?

Compilation fails

What is the expected correct behavior?

It should compile, so that the user gets a good example from the script.

Relevant logs and/or images

Environment information

  • OpenFOAM version : v2006
  • Operating system : Ubuntu 20.04
  • Hardware info :
  • Compiler :

Possible fixes

In last three constructors in the initialization (XYZ...C), it should be corrected to (from translatingWallVelocityFvPatchVectorField.C):

timeVsData_(ptf.timeVsData_.clone()),

Edited by Håkan