December 14, 2022, 15:05
|
#codeStream error: fvCFD.H: No such file or directory
|
#1
|
New Member
lyb
Join Date: Nov 2022
Posts: 3
Rep Power: 3
|
Hi Foamers! I am using #codeStream for my initial and boundary condition. Here is an excerpt of the 0/q:
Code:
internalField #codeStream
{
codeInclude
#{
#include "fvCFD.H"
#include "fvMesh.H"
#}
codeOptions
#{
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude
#}
codeLibs
#{
-lmeshTools \
-lfiniteVolume
#}
code
#{
const IOdictionary& d = static_cast<const IOdictionary&>(dict);
const fvMesh& mesh = refCast<const fvMesh>(d.db());
volscalarField alpha(mesh.nCells(), 0.);
forAll (alpha, i)
{
const scalar y = mesh.C()[i][1];
alpha[i] = y;
}
writeEntry(os, "", alpha);
#};
};
Then when I try to solve this case with a solver which I wrote, I get this error message about fvCFD.H not existing.
Code:
Create time
Create mesh for time = 0
Reading physicalProperties
Reading field q
Using #codeStream at line 18 in file "/home/openfoam/run/fourgyres/0/q"
Using #codeStream with "/home/openfoam/run/fourgyres/dynamicCode/platforms/linux64GccDPInt32Opt/lib/libcodeStream_5afc64c4de7b05b26548eb961278d42f0428417d.so"
Invoking "wmake -s libso /home/openfoam/run/fourgyres/dynamicCode/_5afc64c4de7b05b26548eb961278d42f0428417d"
wmake libso /home/openfoam/run/fourgyres/dynamicCode/_5afc64c4de7b05b26548eb961278d42f0428417d
Ctoo: codeStreamTemplate.C
/home/openfoam/run/fourgyres/0/q/#codeStream:22:10: fatal error: fvCFD.H: No such file or directory
compilation terminated.
make: *** [/opt/openfoam10/wmake/rules/General/transform:26: Make/linux64GccDPInt32Opt/codeStreamTemplate.o] Error 1
Any help will be much appreciated. Thank you!
|
|
|