|
[Sponsors] |
April 7, 2010, 06:51 |
create own case for laplacianFoam
|
#1 |
New Member
Join Date: Mar 2010
Posts: 14
Rep Power: 16 |
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 |
|
April 7, 2010, 07:33 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Greetings Rahul,
You've got a typo in the sed command: Quote:
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... |
||
April 7, 2010, 08:12 |
|
#3 | |
New Member
Join Date: Mar 2010
Posts: 14
Rep Power: 16 |
Quote:
Sorry for my negligence for typo error. Its working fine. Regards Rahul. |
||
April 7, 2010, 14:48 |
|
#4 | ||
New Member
Join Date: Mar 2010
Posts: 14
Rep Power: 16 |
Quote:
Quote:
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? |
|||
April 7, 2010, 15:25 |
|
#5 |
New Member
Join Date: Mar 2010
Posts: 14
Rep Power: 16 |
Hi,
I solved my query. I edit the patches in boundryField. Thank u |
|
April 7, 2010, 15:30 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
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. 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... |
|
April 8, 2010, 00:03 |
|
#7 |
New Member
Join Date: Mar 2010
Posts: 14
Rep Power: 16 |
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 |
|
|
|
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 16:52 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 11:55 |
new mesh, same case file | student | FLUENT | 1 | January 29, 2007 10:37 |