CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Compiled custom wall function unknown by solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2014, 07:35
Default
  #21
New Member
 
Julian Hüttner
Join Date: Nov 2013
Location: Karlsruhe, Germany
Posts: 22
Rep Power: 12
juhuettn is on a distinguished road
Hi Alexey,

I managed to fix the SigFpe error, but now I get multiple other errors. So I decided it is best to build the debug version of OF. So far, I could not find a clear instruction how to do it so I did following to get started and try:

I changed the line

Code:
export WM_COMPILE_OPTION=Opt
to

Code:
export WM_COMPILE_OPTION=Debug
in my /opt/openfoam230/etc/bashrc file as I read this in some thread. I then tried to recompile everything with:
Code:
cd /opt/openfoam230/
./Allwmake
But it complained:

Code:
Error: Current directory is not $WM_PROJECT_DIR
    The environment variables are inconsistent with the installation.
    Check the OpenFOAM entries in your dot-files and source them.
Then I changed the .bashrc file in the folder where a copy of OpenFOAM was created during installation same as before with the original bashrc file and tried to run Allwmake again:
Code:
julian@julian-ubuntu:~/OpenFOAM/julian-2.3.0$ cd /home/julian/workspace/OpenFOAMjulian@julian-ubuntu:~/workspace/OpenFOAM$ ./Allwmake
Error: Current directory is not /opt/openfoam230
Error: Current directory is not $WM_PROJECT_DIR
    The environment variables are inconsistent with the installation.
    Check the OpenFOAM entries in your dot-files and source them.
I then tried to put the OpenFOAM copy in different folders but I just don't get it. I don't know how this really works as I just followed the instructions to install OpenFOAM but never got what really happens.

Maybe you know about a page where I can read through some instructions how to install OF in debugging mode?

Thanks,
Julian
juhuettn is offline   Reply With Quote

Old   October 16, 2014, 08:25
Default
  #22
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

I don't know, maybe there're binary packages with debug version for Ubuntu. If not, you can follow guide on building OpenFOAM from sources: http://openfoam.org/download/source.php.

Here's one of the ways:

0. Install build dependencies (see guide)
1. cd $HOME
2. mkdir OpenFOAM-dbg
3. cd OpenFOAM-dbg
4. wget -c http://downloads.sourceforge.net/foa...FOAM-2.3.0.tgz
5. tar xzf OpenFOAM-2.3.0.tgz
6. rm OpenFOAM-2.3.0.tgz (or you can keep archive if you like)
7. cd OpenFOAM-2.3.0
8. vi etc/bashrc
9. Change export WM_PROJECT=OpenFOAM to export WM_PROJECT=OpenFOAM-dbg
10. Change export WM_COMPILE_OPTION=Opt to export WM_COMPILE_OPTION=Debug
11. Exit vim
12. source etc/bashrc WM_NCOMPPROCS=4 (adjust number of processes suitable for your desktop)
13. ./Allwmake > log.Allwmake 2>&1
14. Wait
alexeym is offline   Reply With Quote

Old   October 22, 2014, 10:56
Default
  #23
New Member
 
Julian Hüttner
Join Date: Nov 2013
Location: Karlsruhe, Germany
Posts: 22
Rep Power: 12
juhuettn is on a distinguished road
Hi Alexey,

so finally I got my wallFunctions running! Thanks to your advices, I was able to install the debug version and find the errors in my C files.

Thank you very much for your time!
juhuettn is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Commercial meshers] fluent3DMeshToFoam bego OpenFOAM Meshing & Mesh Conversion 31 August 16, 2023 10:04
Radiation interface hinca CFX 15 January 26, 2014 18:11
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
[OpenFOAM] Saving ParaFoam views and case sail ParaView 9 November 25, 2011 16:46
Compilation errors in ThirdPartymallochoard feng_w OpenFOAM Installation 1 January 25, 2009 07:59


All times are GMT -4. The time now is 02:55.