|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Frederik
Join Date: Dec 2015
Location: Germany
Posts: 25
Rep Power: 11 ![]() |
Hello cfd-online.com
I am trying to use swak4foam for a project, but I seem to miss an important step. I use Ubuntu14.04LTS and OpenFoam2.4.0 I installed the swak4foam version for OF2.0 and higher Code:
svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_2.0/libraries/swak4Foam/ swak4Foam_2.x https://openfoamwiki.net/index.php/I...14.04_to_15.10 But when I try to use this function in my controlDict Code:
functions
{
pressureDrop
{
type patchExpression;
variables ( "pOut{patch'outlet}=sum(p*area())/sum(area());");
accumulations (
min
max
);
patches (
inlet
);
expression "p-pOut";
verbose true;
}
}
Code:
--> FOAM FATAL ERROR:
Unknown function type patchExpression
Valid functions are :
4
(
patchProbes
probes
sets
surfaces
)
From function functionObject::New(const word& name, const Time&, const dictionary&)
in file db/functionObjects/functionObject/functionObject.C at line 92.
FOAM exiting
Code:
export SWAK4FOAM_SRC=$HOME/swak4Foam_2.x/Libraries/ I am relativly new to Ubuntu and openFoam. Any help is deeply appreciated
|
|
|
|
|
|
|
|
|
#2 |
|
New Member
Frederik
Join Date: Dec 2015
Location: Germany
Posts: 25
Rep Power: 11 ![]() |
If anyone in future has the same misconceptions as I do.
You can't just put in the functionObjects from swak4Foam in the ControlDict of a random case. You need the .libs too. There is a folder "Examples" in the "./swak4Foam/" main folder. Pick your desired option and C&P them into your file. |
|
|
|
|
|
![]() |
| Tags |
| of240, swak4foam, ubuntu14.04 |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|