CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   How to add an application to FoamX (http://www.cfd-online.com/Forums/openfoam-solving/60592-how-add-application-foamx.html)

liqiangnwpu March 26, 2005 09:24

I am learning how to add a use
 
I am learning how to add a user defined application, and I copied the dielseFoam in /application/ and change the file names to MyFoam and compiled it successfully,the path is set as follows:
EXE= $(FOAM_APPBIN)/MyFoam
but when run FoamX after that, I can not find this application solver in the standard solver list in FoamX, what should/can do to add it to the standard application list?

mattijs March 28, 2005 07:41

Search the board for FOAMX_USE
 
Search the board for FOAMX_USER_CONFIG and you should pick up a thread discussing how to do this.

good luck,

Mattijs

chafi_fatima_zohra May 3, 2005 13:44

hi, 1-to add a user defined
 
hi,

1-to add a user defined application, i copied the icoFoam in /application/ and change the file name to buildingFoam , but when i compiled it, the path is set as follows:

EXE=$(FOAM_APPBIN)/icoFoam why?
because , i think that when compilation is made successfully, the true path is set as follows:

EXE=$(FOAM_APPBIN)/buildingFoam

can you explain me where is a problem
2- i must rename icoFoam.C to buildingFoam.C?(when i do this the code does not compile)

thank you

henry May 3, 2005 13:49

Have you edited Make/files to
 
Have you edited Make/files to correspond to the new name of the application?

chafi_fatima_zohra May 3, 2005 14:03

hi, no, i did not made edit
 
hi,

no, i did not made edition in Make/file.

then, i must edit Make/file and change $(FOAM_APPBIN)/icoFoam to $(FOAM_APPBIN)/buildingFoam?
I must remove the expression icoFoam and replace it by buildingFoam?

thank you

henry May 3, 2005 14:14

That would be a good start. I
 
That would be a good start. It would also be a good idea to use FOAM_USER_APPBIN rather than FOAM_APPBIN. By the way all this is covered in UserGuide.pdf which is supplied with the release and is also available from the web-site.

chafi_fatima_zohra May 3, 2005 14:20

hi, thank you very much for
 
hi,

thank you very much for your help

bye

chafi_fatima_zohra May 4, 2005 12:58

hi, i edited in Make/files fi
 
hi,
i edited in Make/files file :
EXE=$FOAM_USER_APPBIN/buildingFoam (note: buildingFoam is my application)
but when i do runFoamX, I can not find this application solver in the standard solver list in FoamX

can you explain me please where is the procedure to add it in standard solver list?

thank you

henry May 4, 2005 13:39

If you want to setup FoamX for
 
If you want to setup FoamX for your new solver you will have to create configuration files for it. Take a look at the configuration files for the standard applications in OpenFOAM-1.1/applications/utilities/preProcessing/FoamX/config/applications

chafi_fatima_zohra May 4, 2005 14:33

hi, i copied all files with e
 
hi,
i copied all files with extension .cfg from icoFoam to buildingFoam and replaced icoFoam expression by buildinFoam ,then configuration files have been created, but buildingFoam solver not appear when runing FoamX.

why?

thank you

henry May 4, 2005 14:37

What is the path to the buildi
 
What is the path to the buildinFoam.cfg file?

chafi_fatima_zohra May 4, 2005 14:47

hi, the path is OpenFOAM-1.
 
hi,

the path is OpenFOAM-1.1/applications/utilities/preProcessing/FoamX/config/applications/inco mpressible/buildingFoam

henry May 4, 2005 15:11

And inside that directory do y
 
And inside that directory do you have the file buildingFoam.cfg? And in that file you have an entry

executable buildingFoam;

?

chafi_fatima_zohra May 4, 2005 15:37

hi, yes
 
hi,

yes

chafi_fatima_zohra May 5, 2005 10:40

hi, my problem concerning t
 
hi,

my problem concerning to add my new application in FoamX is not resolved and i don't know why?

i configured all files , i have buildingFoam.cfg file and in that file, i have executable buildingFoam.

can you help me please?

thank's

chafi_fatima_zohra May 11, 2005 13:00

hi, after configuration, my n
 
hi,
after configuration, my new application not appear.

can you help me please

thank's

henry May 11, 2005 13:41

I have no idea what you are do
 
I have no idea what you are doing wrong and I haven't got any spare time right now to investigate because I am busy preparing the next release, perhaps someone else can help you.

yfjma May 25, 2005 02:18

hi, chafi fatima zohra, maybe
 
hi, chafi fatima zohra, maybe you can solve the problem as followings:

1. find the controlDic file in the path
home/OpenFOAM/OpenFOAM-1.1/.OpenFOAM-1.1/

2. add the following sentence to the file
"$FOAM_RUN/tutorials/buildinFoam"

Good Luck!!


All times are GMT -4. The time now is 13:39.