|
[Sponsors] |
Problem compiling custom boundary condition as a library |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 21, 2014, 11:12 |
Problem compiling custom boundary condition as a library
|
#1 |
Member
Vincent Leroy
Join Date: Jul 2012
Location: Rhode-Saint-Genèse, Belgium
Posts: 43
Rep Power: 14 |
Dear OpenFOAM programmers,
I am learning how to write my own boundary conditions. This BC represents a mass source term at a reacting boundary. The velocity on the patch is non zero, orthogonal to the patch, and depends on the local density of the fluid and solid phase. I designed it after the oscillatingFixedValue and surfaceNormalFixedValue patches. The header and implementation files are attached. When I try to compile the llibrary using the wmake libso command, wmake and GCC throw the following error messages (we have some French in there, sorry for that): Code:
In file included from pyrolysisVelocityFvPatchField.C:26:0: pyrolysisVelocityFvPatchField.H:243:1: erreur: ‘patch’ has not been declared pyrolysisVelocityFvPatchField.H:243:1: erreur: expected constructor, destructor, or type conversion before ‘;’ token pyrolysisVelocityFvPatchField.H:243:1: erreur: ‘patchMapper’ has not been declared pyrolysisVelocityFvPatchField.H:243:1: erreur: expected constructor, destructor, or type conversion before ‘;’ token pyrolysisVelocityFvPatchField.H:243:1: erreur: expected constructor, destructor, or type conversion before ‘;’ token make: *** [Make/linux64GccDPOpt/pyrolysisVelocityFvPatchField.o] Erreur 1 Vincent |
|
January 21, 2014, 11:39 |
|
#2 |
Senior Member
|
Hi,
It seems that you forgot Code:
#include "addToRunTimeSelectionTable.H" |
|
January 21, 2014, 11:44 |
Solved
|
#3 |
Member
Vincent Leroy
Join Date: Jul 2012
Location: Rhode-Saint-Genèse, Belgium
Posts: 43
Rep Power: 14 |
||
Tags |
boundary condition, library, openfoam, patch |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem about pressure boundary condition at sharp corner | yhaomin2007 | OpenFOAM Running, Solving & CFD | 1 | January 19, 2016 10:24 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
Pressure Boundary Condition Problem | rbjet | CFX | 3 | July 15, 2013 22:45 |
External Radiation Boundary Condition (Two sided wall), Grid Interface | CFD XUE | FLUENT | 0 | July 8, 2010 07:49 |
a problem with Boundary condition | M Rad | Main CFD Forum | 12 | November 27, 1998 13:49 |