CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Pre-Processing

create own case for laplacianFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 7, 2010, 06:51
Default create own case for laplacianFoam
  #1
New Member
 
Join Date: Mar 2010
Posts: 14
Rep Power: 7
rahulrp is on a distinguished road
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
rahulrp is offline   Reply With Quote

Old   April 7, 2010, 07:33
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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

Last edited by wyldckat; April 7, 2010 at 07:38. Reason: re-read my post...
wyldckat is offline   Reply With Quote

Old   April 7, 2010, 08:12
Default
  #3
New Member
 
Join Date: Mar 2010
Posts: 14
Rep Power: 7
rahulrp is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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 is offline   Reply With Quote

Old   April 7, 2010, 14:48
Default
  #4
New Member
 
Join Date: Mar 2010
Posts: 14
Rep Power: 7
rahulrp is on a distinguished road
Quote:
Originally Posted by rahulrp View Post
Thankx Sir..
Sorry for my negligence for typo error. Its working fine.
Regards
Rahul.
Quote:
Originally Posted by wyldckat View Post
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?
Attached Files
File Type: gz blockMeshDict.tar.gz (702 Bytes, 6 views)
rahulrp is offline   Reply With Quote

Old   April 7, 2010, 15:25
Default
  #5
New Member
 
Join Date: Mar 2010
Posts: 14
Rep Power: 7
rahulrp is on a distinguished road
Hi,
I solved my query. I edit the patches in boundryField.
Thank u
rahulrp is offline   Reply With Quote

Old   April 7, 2010, 15:30
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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...

Last edited by wyldckat; April 7, 2010 at 15:31. Reason: noticed after posting that solution was already reached...
wyldckat is offline   Reply With Quote

Old   April 8, 2010, 00:03
Default
  #7
New Member
 
Join Date: Mar 2010
Posts: 14
Rep Power: 7
rahulrp is on a distinguished road
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
rahulrp is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Interfoam Droplet under shear test case adona058 OpenFOAM Running, Solving & CFD 3 May 3, 2010 18:46
Where's the singularity/mesh flaw? audrich FLUENT 3 August 4, 2009 01:07
Cloning a case or creating a new case for 16 processes mellanoxuser OpenFOAM Running, Solving & CFD 0 February 8, 2008 17:52
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
new mesh, same case file student FLUENT 1 January 29, 2007 11:37


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