CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Problems about solvers (https://www.cfd-online.com/Forums/openfoam-solving/57855-problems-about-solvers.html)

fw407 December 22, 2007 16:09

hi,i am a beginner of openFoam
 
hi,i am a beginner of openFoam.i downloaded a FSI case and its solver, but i don't know how to creat a class on my own,how to use the solver.could anyone help me?


thanks for help in advance

jaswi December 23, 2007 07:59

Hi Wang Wish you a good day
 
Hi Wang

Wish you a good day.

Please be more specific and post the screen output and errors from your attempts as for now it is not clear what actually the problem is.

please tell me what you tried and where things went wrong.

Also please consult user guide if you haven't done that yet.

Kind Regards
Jaswinder

fw407 December 23, 2007 08:30

hi Jaswinder, thanks for your
 
hi Jaswinder, thanks for your response.
i am trying to use a solver of FSI.but i do not know how to do it,so i first follow steps i found on a website to create a solver by modify a pre-defined solver,here is the address:
http://www.csc.fi/english/research/s...enfoam/modsol/

at the beginning,everything is fine,
but when i inuput "emacs Make/files"
and the terminal tells me:
The program 'emacs' can be found in the following packages:
* emacs21-nox
* emacs22-gtk
* emacs22
* emacs-snapshot
* e3
* emacs-snapshot-nox
* emacs21
* emacs22-nox
* jove
* emacs-snapshot-gtk
Try: sudo apt-get install <selected>
bash: emacs: command not found

i do not what is the problem,so i creat a file manully which the coresponding step on the website want me to creat
after that i input "wmake",problems also comes up
,the terminal tells me:
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:111: error: '::fopen' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:112: error: '::fprintf' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:113: error: '::fputc' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:114: error: '::fputs' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:115: error: '::fread' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:116: error: '::freopen' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:117: error: '::fscanf' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:118: error: '::fseek' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:119: error: '::fsetpos' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:120: error: '::ftell' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:121: error: '::fwrite' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:122: error: '::getc' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:123: error: '::getchar' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:124: error: '::gets' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:125: error: '::perror' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:126: error: '::printf' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:127: error: '::putc' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:128: error: '::putchar' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:129: error: '::puts' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:130: error: '::remove' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:131: error: '::rename' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:132: error: '::rewind' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:133: error: '::scanf' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:134: error: '::setbuf' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:135: error: '::setvbuf' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:136: error: '::sprintf' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:137: error: '::sscanf' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-g

these are just part of the errors ,for it is too long.sorry about that

So could you give me some advice on how to deal with it?

kindly regards

Feng

fw407 December 23, 2007 10:37

hi ,i try it ,but it seems i c
 
hi ,i try it ,but it seems i can not creat an executable in the
/home/fw407/OpenFOAM/fw407-1.4.1/applications/bin/linuxGccDPOpt directory

could anyone help me?

stephan December 23, 2007 15:43

hi, most of the upper error
 
hi,

most of the upper error lines look like your compiler believes that used commands like scanf,printf do not belong to the namespace you said.
so the question is
??what-lib??::thisbelongsto
i hope that helps...
br
stephan

fw407 December 23, 2007 16:50

hi, Stephan, thanks for respon
 
hi, Stephan, thanks for response
i still can not figure it out .actually all i want is just to use a new solver i download on the website.i find some tips in the user's guide, but it does not tell me how to creat my own solver and how to use it specifically. i am just a beginner,so could you teach me how to do it. maybe you method is better^-^


kind regards

feng

jaswi December 24, 2007 02:24

Hi Wang please send me the
 
Hi Wang

please send me the solver u r tying to compile. I will give it a try on my system and see whether it works.

kind regards
Jaswinder

stephan December 24, 2007 05:15

hi, send me the link of the
 
hi,

send me the link of the solvers and i will try to help...
br
stephan

fw407 December 24, 2007 10:15

hi, tha fact is that i have
 
hi,

tha fact is that i have compiled the predefined solver,say icoFoam, i end up with the same errors, but i can run FoamX, and follow the cases in the user's guid without any bugs. so i think the solver is good .maybe the way i compile the solver is not correct, maybe something is wrong with my installation,and i fail to install some important files .so i am a little bit lost

i will send you the solver by eamil

many thanks ^_^

feng

21kalee January 1, 2008 19:13

Hi, feng wang. I
 
Hi, feng wang.
I will also give a try. Send me the link.....

asaha January 2, 2008 06:52

Hello Feng, I would appreci
 
Hello Feng,

I would appreciation if your can send me the links for the solver and tutotial file for FSI.

fw407 January 2, 2008 13:19

hi a a saha this is the lin
 
hi a a saha

this is the link of the sovler and it also involves two particular case for the sovler.

Kind regards

feng

asaha January 3, 2008 04:27

Helllo Feng, The link is no
 
Helllo Feng,

The link is not available in your post. Can you pl. repost the link again.

Thanks,

a a saha

fw407 January 3, 2008 04:56

hi,sorry about that http://
 
hi,sorry about that

http://openfoamwiki.net/index.php/Contrib_icoStructFoam

all the best

feng

gschaider January 3, 2008 05:34

Hi Feng! Which Version of O
 
Hi Feng!

Which Version of OF are you using? I guess 1.4.x

The sources on that page currently only work with 1.3 and definitly won't compile on 1.4

Bernhard

fw407 January 3, 2008 06:22

Hi Bernhard! i am using 1.4
 
Hi Bernhard!

i am using 1.4.1. actually i want to install 1.3, but i can only download 1.4.1 from the wenbiste of OF.

all the best

Feng

gschaider January 3, 2008 08:24

1.3 is available at http://sou
 
1.3 is available at http://sourceforge.net/projects/foam

eduardasilva March 5, 2009 07:29

Hello, I am trying to compi
 
Hello,

I am trying to compile a modified simpleFoam solver. But when I tried to run wmake an error comes out stating that:
"/usr/bin/ld: cannot find -llduSolvers
collect2: ld returned 1 exit status
make: *** [/home/USR/OpenFOAM/USR-1.5/applications/bin/linuxGccDPOpt/simpleConvergenceFoam ] Error 1"

The Make/options file is exactly the same as in OpenFoam.

I would appreciate if you could give me some advice.

Eduarda


All times are GMT -4. The time now is 01:26.