|
[Sponsors] |
February 2, 2013, 12:11 |
|
#21 |
New Member
mohsen cheraghi
Join Date: Jun 2010
Location: Switzerland
Posts: 28
Rep Power: 16 |
Hi
you should type what is at line 30-32, to see what is wrong with it. |
|
February 2, 2013, 12:30 |
Reply
|
#22 |
Member
Anonymous
Join Date: Jan 2012
Location: Canada
Posts: 65
Rep Power: 14 |
OUTLET
{ type fixedMeanValue; meanValue 0; } Seems like it can't find the new fixedMeanValue BC. |
|
February 2, 2013, 12:37 |
|
#23 |
Senior Member
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 22 |
Don't forget to load the library in the system/controldict
If you did this already, check the terminal output for warnings. I don't recall the warning exactly but it's something like 'Warning: could not load library'... Cheers, L |
|
February 2, 2013, 16:35 |
Reply
|
#24 |
Member
Anonymous
Join Date: Jan 2012
Location: Canada
Posts: 65
Rep Power: 14 |
Hi Lieven,
It wouldn't load. It said the library could not be found. I followed the directuions to the letter. Is there anything else I have to do? Cheers: Adam |
|
February 2, 2013, 18:17 |
|
#25 |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
It looks like you're install is in /opt and that looks like the Ubuntu package install. If so, it may be worthwhile to move to the git version of OpenFOAM and compile the whole thing yourself. Some good instructions are here. I think the ubuntu package is great if you want to quickly run things and get a feel for OpenFOAM, but if you are going to do more complicated stuff....i would move on and recompile it yourself. Its not very difficult at all and the link I provided will get you through no problem. Plus its fun
|
|
February 2, 2013, 18:30 |
|
#26 |
Member
Anonymous
Join Date: Jan 2012
Location: Canada
Posts: 65
Rep Power: 14 |
Hi Dan,
I downloaded two .C files for fixedMeanValue and one header file. See attached. When I run wmake libso finiteVolume I get the following errors....which file should be in my 'files' list.... Unfortunately I don't have time to recompile OpenFOAM. I would really appreciate your advice though. Cheers |
|
February 3, 2013, 12:51 |
Errors
|
#27 |
Member
Anonymous
Join Date: Jan 2012
Location: Canada
Posts: 65
Rep Power: 14 |
Here are the errors I get after trying to compile:
SOURCE=fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam210/src/triSurface/lnInclude -I/opt/openfoam210/src/meshTools/lnInclude -I/opt/openfoam210/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/fixedMeanValueFvPatchFields.o In file included from fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:29:0: fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.H:48:27: error: expected constructor, destructor, or type conversion before ‘(’ token fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchScalarField’ has not been declared fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchScalarField’ has not been declared fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchScalarField’ has not been declared fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchScalarField’ has not been declared fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: warning: unused variable ‘Foam::debug’ [-Wunused-variable] fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchScalarField’ was not declared in this scope fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: template argument 1 is invalid fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: invalid type in declaration before ‘;’ token fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchScalarField’ was not declared in this scope fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: template argument 1 is invalid fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: invalid type in declaration before ‘;’ token fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchScalarField’ was not declared in this scope fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: template argument 1 is invalid fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: invalid type in declaration before ‘;’ token fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchVectorField’ has not been declared fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchVectorField’ has not been declared fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchVectorField’ has not been declared fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchVectorField’ has not been declared fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: warning: unused variable ‘Foam::debug’ [-Wunused-variable] fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchVectorField’ was not declared in this scope fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: template argument 1 is invalid fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: invalid type in declaration before ‘;’ token fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchVectorField’ was not declared in this scope fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: template argument 1 is invalid fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: invalid type in declaration before ‘;’ token fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchVectorField’ was not declared in this scope fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: template argument 1 is invalid fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: invalid type in declaration before ‘;’ token fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchSphericalTensorField’ has not been declared fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchSphericalTensorField’ has not been declared fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchSphericalTensorField’ has not been declared fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchSphericalTensorField’ has not been declared fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: warning: unused variable ‘Foam::debug’ [-Wunused-variable] fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchSphericalTensorField’ was not declared in this scope fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: template argument 1 is invalid fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: invalid type in declaration before ‘;’ token fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchSphericalTensorField’ was not declared in this scope fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: template argument 1 is invalid fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: invalid type in declaration before ‘;’ token fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchSphericalTensorField’ was not declared in this scope fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: template argument 1 is invalid fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: invalid type in declaration before ‘;’ token fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchSymmTensorField’ has not been declared fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchSymmTensorField’ has not been declared fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchSymmTensorField’ has not been declared fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchSymmTensorField’ has not been declared fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: warning: unused variable ‘Foam::debug’ [-Wunused-variable] fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchSymmTensorField’ was not declared in this scope fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: template argument 1 is invalid fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: invalid type in declaration before ‘;’ token fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchSymmTensorField’ was not declared in this scope fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: template argument 1 is invalid fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: invalid type in declaration before ‘;’ token fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchSymmTensorField’ was not declared in this scope fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: template argument 1 is invalid fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: invalid type in declaration before ‘;’ token fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchTensorField’ has not been declared fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchTensorField’ has not been declared fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchTensorField’ has not been declared fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchTensorField’ has not been declared fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: warning: unused variable ‘Foam::debug’ [-Wunused-variable] fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchTensorField’ was not declared in this scope fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: template argument 1 is invalid fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: invalid type in declaration before ‘;’ token fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchTensorField’ was not declared in this scope fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: template argument 1 is invalid fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: invalid type in declaration before ‘;’ token fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: ‘fixedMeanValueFvPatchTensorField’ was not declared in this scope fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: template argument 1 is invalid fields/fvPatchFields/derived/fixedMeanValue/fixedMeanValueFvPatchFields.C:40:1: error: invalid type in declaration before ‘;’ token make: *** [Make/linux64GccDPOpt/fixedMeanValueFvPatchFields.o] Error 1 |
|
February 4, 2013, 02:42 |
|
#28 |
Senior Member
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 22 |
Ok,
seems to me you're missing two files. You can find them in the attachment. Cheers, Lieven |
|
February 4, 2013, 10:01 |
|
#29 |
Member
Anonymous
Join Date: Jan 2012
Location: Canada
Posts: 65
Rep Power: 14 |
Thanks Lieven,
I put the files in the correct place, and I am recompiling now....hopefully it works. I really appreciate all of your help on this one. This type of BC should be a standard BC in OpenFOAM, it's much more stable. There is a reason commercial solvers usually implement this; you need robustness when working on real problems. Thanks again, Cheers: Adam |
|
February 4, 2013, 10:49 |
Update
|
#30 |
Member
Anonymous
Join Date: Jan 2012
Location: Canada
Posts: 65
Rep Power: 14 |
I tried to re-compile, but I get an error related to /platforms/linux64gcc/lib
It seems to have trouble compiling libFiniteVolume.so /opt/openfoam210/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: file not recognized: File truncated collect2: ld returned 1 exit status make: *** [/opt/openfoam210/platforms/linux64GccDPOpt/lib/libfiniteVolume.so] Error 1 The rest of the compilation seemed to go well. Man, this is a struggle. Before you did an ./Allwmake, is there a clean command I need to use? I was just using a wmake on the finiteVolume lib. (wmake libso finiteVolume/) Cheers: Adam |
|
February 4, 2013, 11:27 |
|
#31 |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
Do you have all the required packages to compile OpenFOAM? My previous suggestion contains a link to a page with instructions (here are the instructions). There they provide the packages:
Code:
sudo apt-get install build-essential flex bison cmake zlib1g-dev qt4-dev-tools libqt4-dev gnuplot libreadline-dev libncurses-dev libxt-dev Code:
wclean libso Code:
wmake libso Lastly, compiling really does not take any time at all. The instructions are really straightforward and If you do this while you are gone to lunch....if will be done by the time you get back. Over the last few years, OpenFOAM has really become much better at compiling with the set of provided instructions...extend and standard OpenFOAM alike. Good luck! Last edited by chegdan; February 4, 2013 at 11:36. Reason: spelling |
|
February 4, 2013, 12:02 |
Reply
|
#32 |
Member
Anonymous
Join Date: Jan 2012
Location: Canada
Posts: 65
Rep Power: 14 |
Hi Dan,
Followed the instructions and got the same error. I can't figure out why the file would be truncated....it's like it got to large.. Cheers |
|
February 4, 2013, 12:12 |
|
#33 |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
on the thread I provided, the problem was solved with the ubuntu package binutils-dev.
I will install the ubuntu package and try to install this myself the way you are doing it. |
|
February 4, 2013, 16:04 |
Solved
|
#34 |
Member
Anonymous
Join Date: Jan 2012
Location: Canada
Posts: 65
Rep Power: 14 |
I realized the other posts related to compiling the new BC in a local directory, whereas I compiled it in the /SRC directory. I simply removed the additional lines suggested by the OPs in the /files and /options dictionaries.
To recap: 1. Make sure you contain all 4 files needed for fixedMeanValue pressure BC. 2. follow directions suggested by chegdan in his first post. Chegdan, Thanks for all of your help. Sincerely appreciated. Cheers |
|
February 4, 2013, 16:36 |
|
#35 |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
excellent...Good luck in your work!
|
|
March 26, 2013, 10:07 |
Pressure and speed outlet unknown
|
#36 |
New Member
---
Join Date: Jan 2013
Posts: 17
Rep Power: 13 |
Hi all my name is Sergi and I'm trying to simulate a flow inside a tube with water (interFoam) and what I want to do is to check the difference between the outlet and inlet pressure to purge the system or not.
The thing is that I don't know which kind of boundary condition do I have to set on the outlet in order to allow the program calculate the pressure with respect the speed or whatever. Any ideas? Thanks! |
|
April 4, 2013, 05:30 |
|
#37 |
New Member
Petr Vaněk
Join Date: Nov 2012
Posts: 7
Rep Power: 13 |
Dear Foamers,
I'd like to add the BC fixedMeanValue into my OpenFOAM 2.1.x, but I can't put it into $FOAM_SRC/finiteVolume/fields/fvPatchFields and re-compile (as suggested above) since I'm working on a cluster and I don't have permission to write there. I'm not at all advanced in "all this compiling bussiness". So is there a way to go around it? Thank you so much for a help! Last edited by vanekp; April 4, 2013 at 06:42. |
|
April 4, 2013, 06:34 |
|
#38 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
is it compilable in of 2.2.0?
|
|
April 4, 2013, 11:01 |
|
#39 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
is fixedMeanValue applicable in groovyBC?
which files should be download for compiling in OF 2.2.0? |
|
April 4, 2013, 11:34 |
|
#40 |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
@immortality: Just to quadruple check if I was crazy or not, I went through the thread, made a new fixedMeanValue from the information on this thread, and it works for OF-2.2.x. It literally took longer to write this post than to actually find out if it was compatible .
@vanekp if you have the capability of compiling your own solvers/application in your user directory on your cluster, you can use this BC. Just take the attached code, unzip in your user foam directory, move into the directory and do a Code:
wmake libso Code:
libs ( "libfixedMeanValue.so"); Code:
outlet { type fixedMeanValue; meanValue 0; value uniform 0; } But there is a fixedMean boundary condition in 2.2.x that may be what you want also. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlet pressure boundary condition | adamsview | OpenFOAM Running, Solving & CFD | 2 | November 7, 2011 13:07 |
pressure outlet boundary condition | Sastry | FLUENT | 4 | February 19, 2011 01:33 |
Pressure outlet boundary condition | jubs | FLUENT | 0 | February 8, 2007 00:27 |
Pressure outlet boundary condition | Rizwan | FLUENT | 1 | March 6, 2006 07:07 |
Pressure outlet condition? | David | FLUENT | 3 | March 19, 2004 04:40 |