hallo,
ich versuche EM Kräfte mit ansys zu berechnen und in openfoam die werte zu importieren und darzustellen. ich hab die werte als .txt gespeichert und ein application geschrieben und kompiliert. aber bekomme ich immer Fehler:
FQforce.C: In function ‘int main(int, char**)’:
FQforce.C:14: error: expected initializer before ‘int’
FQforce.C:17: error: ‘fopen’ was not declared in this scope
FQforce.C:20: error: ‘n’ was not declared in this scope
FQforce.C:21: error: ‘fordim’ was not declared in this scope
FQforce.C:22: error: ‘fscanf’ was not declared in this scope
FQforce.C:24: error: ‘fclose’ was not declared in this scope
FQforce.C:32: error: ‘i’ was not declared in this scope
FQforce.C:33: error: ‘count’ was not declared in this scope
FQforce.C:48: error: ‘n’ was not declared in this scope
FQforce.C:51: error: ‘fordim’ was not declared in this scope
make: *** [Make/linux64GccDPOpt/FQforce.o] Fehler 1
Anfang meines codes sieht so aus :
#include "fvCFD.H"
int main ( int argc,char*argv[])
{
#include "setRootCase.H"
#include "createTime.H"
#include "createMesh.H"
#include "createFields.H"
..........................
wenn ich #include <stdlib.h> einfüge bekomme ich :
/usr/include/stdio.h: In function ‘int main(int, char**)’:
/usr/include/stdio.h:30: error: expected unqualified-id before string constant
FQforce.C:78: error: expected ‘}’ at end of input
make: *** [Make/linux64GccDPOpt/FQforce.o] Fehler 1
Hat jemand ein Idee oder versucht das gleiche zu kompilieren
danke
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP