|
[Sponsors] |
January 28, 2017, 11:41 |
query point value
|
#1 |
New Member
Markus Sack
Join Date: Jul 2015
Posts: 2
Rep Power: 0 |
Hi,
I'm searching for a solution to query the value of a single point/node, but I've not been able to find the solution in the docs, I could solve it by selecting all nodes and then remove the unwanted ones with a filter, but this is ugly as hell. Concrete case: It's an heating element(patch) and it should go on and off depending on the T value of a point. the correct function/call would be a great help |
|
January 30, 2017, 03:23 |
|
#2 |
Senior Member
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 20 |
Code:
funcName { type swakExpression; valueType set; setName onePoint; // This causes a single scalar value to be written outputControlMode timeStep; outputInterval 1; verbose true; set { type cloud; axis x; // ?? points ( (0 0 0) // your point(s): (x y z) ); setName onePoint; } accumulations ( average ); expression "do something fun"; } Code:
libs ( "libsimpleFunctionObjects.so" "libsimpleSwakFunctionObjects.so" "libswakLagrangianParser.so" "libswakFunctionObjects.so" "libsimpleLagrangianFunctionObjects.so" ); |
|
January 31, 2017, 07:36 |
|
#3 |
New Member
Markus Sack
Join Date: Jul 2015
Posts: 2
Rep Power: 0 |
Thank you,
I'll test it tomorrow. And I think it is ok now to be paranoid, I'm tracked by particles everywhere |
|
Tags |
query, swak4foam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Point monitor on the cylinder. | bukajbs | FLUENT | 0 | April 12, 2015 16:02 |
CFD-post: defining (or projecting) point on surface | bongbang | CFX | 1 | April 1, 2015 12:16 |
a reconstructPar issue | immortality | OpenFOAM Post-Processing | 8 | June 16, 2013 11:25 |
Problem with UDF compiling for kTkLW model | Wantami | FLUENT | 0 | July 18, 2011 05:11 |
matching variable data with grid point data | anfho | OpenFOAM Programming & Development | 0 | May 6, 2011 15:28 |