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

[swak4Foam] how to write swakExpression

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2017, 00:48
Default how to write swakExpression
  #1
Senior Member
 
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13
harsha_kulkarni is on a distinguished road
Hello Friends
I want to calculate mass transfer coefficient using swak4foam utility

formula for MTC is given by " (wallShearStress/U*896)*0.227"

value needed at the cell center

how to write using swakexpression using function object

Last edited by harsha_kulkarni; June 7, 2017 at 06:03. Reason: New error
harsha_kulkarni is offline   Reply With Quote

Old   June 7, 2017, 06:05
Default
  #2
Senior Member
 
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13
harsha_kulkarni is on a distinguished road
MTC
{
type swakExpression;
expression "(wallShearStress/U*896)*0.227";
accumulations (sum);
valueType cellZone;
zoneName faceZone;
outputControlMode outputTime;

}

this is th function object I had used for calculating Mass Transfer Coefficient

after that I am getting error

[swak4Foam: Setting default mesh
[0]
[0]
[0] --> FOAM FATAL ERROR:
[0] The cellZone faceZone was not found in 0()
[0]
[0]
[0] From function getCellZoneID(const fvMesh &mesh,const word &name)
[0] in file CellZoneValueExpressionDriver.C at line 63.
[0]
FOAM parallel run exiting]
harsha_kulkarni 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
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 7 December 15, 2020 13:06
chtMultiRegionSimpleFoam does not write converged time step Tobi OpenFOAM Bugs 6 October 14, 2017 11:41
[Helyx OS] Helyx-OS (GUI for SnappyHexMesh elvis OpenFOAM Community Contributions 210 January 30, 2017 18:57
Floating point exception (yes...) sandri_92 OpenFOAM Running, Solving & CFD 0 October 23, 2016 14:42
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 14:37


All times are GMT -4. The time now is 12:26.