|
[Sponsors] |
April 22, 2015, 13:24 |
swakFoam - expressionField
|
#1 |
Member
Luca
Join Date: Mar 2011
Location: Italy
Posts: 62
Rep Power: 15 |
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; } Code:
libs ( "libmyIncompressibleRASModels.so" "libsimpleFunctionObjects.so" "libsimpleSwakFunctionObjects.so" "libOpenFOAM.so" "libgroovyBC.so" ); 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 ) Thanks in advance. Luca |
|
April 22, 2015, 13:50 |
swakFoam - expressionField [SOLVED]
|
#2 |
Member
Luca
Join Date: Mar 2011
Location: Italy
Posts: 62
Rep Power: 15 |
Hi,
I've found the mistake. I didn't add the libswakFunctionObjects.so to libs. Luca Last edited by marluc; April 23, 2015 at 04:16. Reason: problem solved |
|
Tags |
expressionfield, swak4foam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] Trouble accessing fields within expressionField | aerogt3 | OpenFOAM Post-Processing | 6 | May 12, 2017 16:02 |
how to initalize an expressionField for the walldistance? | david112 | OpenFOAM Pre-Processing | 1 | March 23, 2017 03:23 |
[swak4Foam] Using fieldAverage together with swak4foam expressionField | tiam | OpenFOAM Community Contributions | 33 | December 18, 2016 08:49 |
Problems creating a volScalarField with expressionField function-object | zfaraday | OpenFOAM Running, Solving & CFD | 2 | January 12, 2015 08:49 |
[swak4Foam] expressionField | aylalisa | OpenFOAM Community Contributions | 1 | October 28, 2014 18:42 |