CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] swakFunctionObject

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 12, 2015, 03:34
Default swakFunctionObject
  #1
Senior Member
 
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11
rapierrz is on a distinguished road
Hi friends.
I have a problem with swakFunctionObject for nusselt calculation.
my openfoam version is 2.2.1 .
libs (
"libOpenFOAM.so"
"libsimpleSwakFunctionObjects.so"
"libswakFunctionObjects.so"
);

functions
(
NusseltNumber
{
type patchExpression;
patches (
down
);
verbose true;
variables (
"Tsat=500;"
"lc2D=0.0072301;
);
expression "lc2D*snGrad(T)/(T-Tsat)";
accumulations (
max
min
average
);
}

);
and error is : unknown function type patchExpression
thank you.
rapierrz is offline   Reply With Quote

Old   February 19, 2015, 13:21
Default
  #2
Senior Member
 
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 22
zfaraday will become famous soon enough
Hello,

Try to add this library to your controlDict
Code:
    "libsimpleFunctionObjects.so"
I am using this function object right now without a problem and I have your libraries plus the one I said above added to my controlDict file.

Regards,

Alex
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com

The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in!
zfaraday is offline   Reply With Quote

Old   February 22, 2015, 03:00
Default
  #3
Senior Member
 
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11
rapierrz is on a distinguished road
Hi alex,

thank you for attention to my question.

I think my problem is not for library definition.

in openfoam 2.2.1 functions type changed to specific words and i don't know

how this types work
rapierrz is offline   Reply With Quote

Reply

Tags
nusselt calculation


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



All times are GMT -4. The time now is 21:14.