CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   create own case for laplacianFoam (http://www.cfd-online.com/Forums/openfoam-pre-processing/74720-create-own-case-laplacianfoam.html)

rahulrp April 7, 2010 06:51

create own case for laplacianFoam
 
I tried to create a new case for laplacianFoam to solve some basic assign of conduction.I did following
cd $FOAM_APP
cp -r --parents solvers/basic/laplacianFoam $WM_PROJECT_USER_DIR/applications
cd $WM_PROJECT_USER_DIR/applications/solvers/basic/
mv laplacianFoam mylaplacianFoam
cd mylaplacianFoam
mv laplacianFoam.C mypallacianFoam.C
sed -i s/laplacianFoam/mylaplacianFoam/g Make/files
sed -i s/FOAM_APPBIN/FOAM_USER_APPBIN/g Make/files
wclean
wmake

After performing above task I got following message in terminal
rahul@rahul-desktop:~/OpenFOAM/rahul-1.6/applications/solvers/basic/mylaplacianFoam$ wmake
make: *** No rule to make target `mylaplacianFoam.dep', needed by `Make/linuxGccDPOpt/dependencies'. Stop.
No bin folder is generated in appliacation folder
I am not getting what exactly is going on
Regards
Rahul

wyldckat April 7, 2010 07:33

Greetings Rahul,

You've got a typo in the sed command:
Quote:

mv laplacianFoam.C mypallacianFoam.C
sed -i s/laplacianFoam/mylaplacianFoam/g Make/files

(edit: uhm, or maybe the typo is in the mv command...)
That's why I usually do code changes by hand, instead of using sed. And copy-paste too ;)

The sed command is more useful for when doing massive or scripted changes. Other than that, you risk doing unwanted changes. And be extra cautious with the fact the C/C++ is case sensitive, and most Linux file systems are as well!

Best regards,
Bruno

rahulrp April 7, 2010 08:12

Quote:

Originally Posted by wyldckat (Post 253522)
Greetings Rahul,

You've got a typo in the sed command:

(edit: uhm, or maybe the typo is in the mv command...)
That's why I usually do code changes by hand, instead of using sed. And copy-paste too ;)

The sed command is more useful for when doing massive or scripted changes. Other than that, you risk doing unwanted changes. And be extra cautious with the fact the C/C++ is case sensitive, and most Linux file systems are as well!

Best regards,
Bruno

Thankx Sir..
Sorry for my negligence for typo error. Its working fine.
Regards
Rahul.

rahulrp April 7, 2010 14:48

1 Attachment(s)
Quote:

Originally Posted by rahulrp (Post 253531)
Thankx Sir..
Sorry for my negligence for typo error. Its working fine.
Regards
Rahul.

Quote:

Originally Posted by wyldckat (Post 253522)
Greetings Rahul,

You've got a typo in the sed command:

(edit: uhm, or maybe the typo is in the mv command...)
That's why I usually do code changes by hand, instead of using sed. And copy-paste too ;)

The sed command is more useful for when doing massive or scripted changes. Other than that, you risk doing unwanted changes. And be extra cautious with the fact the C/C++ is case sensitive, and most Linux file systems are as well!

Best regards,
Bruno


Dear Bruno
Thankx for all ur help & concern to my queries.Now I tried to run mylaplacianFoam
path : /OpenFOAM/rahul-1.6/applications/solvers/basic/mylaplacianFoam/ ls
> conduction createFields.H Make mylaplacianFoam.C mylaplacianFoam.dep write.H
I created blockmeshDict attached herewith. I'm solving simple conduction problem for square cavity with bottom wall at temp. 373k & all other wall insulated. when i hit mylaplacianFoam
following msg appears
Build : 1.6-f802ff2d6c5a
Exec : mylaplacianFoam
Date : Apr 07 2010
Time : 12:00:52
Host : rahul-desktop
PID : 23811
Case : /home/rahul/OpenFOAM/rahul-1.6/applications/solvers/basic/mylaplacianFoam/conduction
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Reading field T


keyword constTemp is undefined in dictionary "/home/rahul/OpenFOAM/rahul-1.6/applications/solvers/basic/mylaplacianFoam/conduction/0/T::boundaryField"

file: /home/rahul/OpenFOAM/rahul-1.6/applications/solvers/basic/mylaplacianFoam/conduction/0/T::boundaryField from line 25 to line 37.

From function dictionary::subDict(const word& keyword) const
in file db/dictionary/dictionary.C at line 449.

FOAM exiting

What xctly ths is?

rahulrp April 7, 2010 15:25

Hi,
I solved my query. I edit the patches in boundryField.
Thank u:)

wyldckat April 7, 2010 15:30

Hi Rahul,

Sadly, my current experience with OpenFOAM is bound to getting OpenFOAM to work, whether in Linux or Windows, as well as Paraview and some other tools that OpenFOAM needs. Modifying solvers to add new features is something that isn't in my skill set :( at least for now.

Nonetheless, I'll try to help you. There are two lines that your solver gave that are indicative of a bad definition of a boundary condition on the temperature file T:
Code:

keyword constTemp is undefined in dictionary  "/home/rahul/OpenFOAM/rahul-1.6/applications/solvers/basic/mylaplacianFoam/conduction/0/T::boundaryField"

file:  /home/rahul/OpenFOAM/rahul-1.6/applications/solvers/basic/mylaplacianFoam/conduction/0/T::boundaryField  from line 25 to line 37.

The text that I highlighted should indicate where you've got the problem.

Additionally, the file that you attached doesn't have the complete case, thus rendering it unlikely to be enough for testing... at least by me :(

Best regards,
Bruno

edit: eheheh, I took to long to reply...

rahulrp April 8, 2010 00:03

Hi Bruno
I am thankful to u for all ur efforts tht u put in solving my queries.
Ur tips worked really well throughout the process.
Thankx:)
Regards
Rahul


All times are GMT -4. The time now is 04:22.