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

[swak4Foam] swakFoam - expressionField

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 22, 2015, 12:24
Default swakFoam - expressionField
  #1
Member
 
Luca
Join Date: Mar 2011
Location: Italy
Posts: 62
Rep Power: 15
marluc is on a distinguished road
Hi,

I would like to evaluate run-time the total kinetic energy through a function object:

Code:
kineticEnergy
{
    type expressionField;
    outputControl timeStep;
    outputInterval 1;
    fieldName kineticEnergy;
    expression "U&U+k";
    autowrite true;
}
At the beginning of controlDict I've added the following libs:
Code:
libs 
(
    "libmyIncompressibleRASModels.so" 
    "libsimpleFunctionObjects.so" 
    "libsimpleSwakFunctionObjects.so" 
    "libOpenFOAM.so" 
    "libgroovyBC.so"
);
OF complains that expressionField is not a valid entry. I've correctly compiled swakFoam, in fact I can use all its other entries.

Here the result of the "banana test":
Code:
Valid functions are : 

54
(
correctThermo
dumpSwakExpression
dumpSwakGlobalVariable
dynamicFunctionObjectListProxy
executeIfEnvironmentVariable
executeIfExecutableFits
executeIfFunctionObjectPresent
executeIfObjectExists
executeIfOpenFOAMVersionBiggerEqual
executeIfParallelSerial
executeIfStartTime
executeIfSwakExpression
fieldDistribution
functionObjectListProxy
initPotentialFlow
initSwakFunctionObject
listRegisteredObjects
loadCompressibleTurbulenceModel
loadIncompressibleTurbulenceModel
loadPsiThermoModel
loadRhoThermoModel
loadSLGThermoModel
panicDump
patchAverage
patchExpression
patchExpressionDistribution
patchFieldDistribution
patchFieldFlow
patchIntegrate
patchMassFlow
patchMassFlowAverage
patchProbes
probes
readAndUpdateFields
readGravitation
recalcPhi
recalcThermoHe
setDeltaTByTimeline
sets
surfaces
swakExpression
swakExpressionAverageDistribution
swakExpressionDistribution
trackDictionary
volumeAverage
volumeIntegrate
volumeMinMax
writeAdditionalFields
writeAndEndFieldRange
writeAndEndSwakExpression
writeFieldsOften
writeIfFieldOutside
writeIfSwakExpression
writeOldTimesOnSignal
)
Can someone help?

Thanks in advance.
Luca
marluc is offline   Reply With Quote

Old   April 22, 2015, 12:50
Default swakFoam - expressionField [SOLVED]
  #2
Member
 
Luca
Join Date: Mar 2011
Location: Italy
Posts: 62
Rep Power: 15
marluc is on a distinguished road
Hi,

I've found the mistake. I didn't add the libswakFunctionObjects.so to libs.
Luca

Last edited by marluc; April 23, 2015 at 03:16. Reason: problem solved
marluc is offline   Reply With Quote

Reply

Tags
expressionfield, swak4foam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[swak4Foam] Trouble accessing fields within expressionField aerogt3 OpenFOAM Post-Processing 6 May 12, 2017 15:02
how to initalize an expressionField for the walldistance? david112 OpenFOAM Pre-Processing 1 March 23, 2017 02:23
[swak4Foam] Using fieldAverage together with swak4foam expressionField tiam OpenFOAM Community Contributions 33 December 18, 2016 07:49
Problems creating a volScalarField with expressionField function-object zfaraday OpenFOAM Running, Solving & CFD 2 January 12, 2015 07:49
[swak4Foam] expressionField aylalisa OpenFOAM Community Contributions 1 October 28, 2014 17:42


All times are GMT -4. The time now is 19:17.