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

[swak4Foam] query point value

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 28, 2017, 11:41
Default query point value
  #1
New Member
 
Markus Sack
Join Date: Jul 2015
Posts: 2
Rep Power: 0
fritzowski is on a distinguished road
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
fritzowski is offline   Reply With Quote

Old   January 30, 2017, 03:23
Default
  #2
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 20
floquation will become famous soon enough
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";
}
I'm not sure what lib I needed for this specific functionObject, but these are all libs I have active:

Code:
libs
(
        "libsimpleFunctionObjects.so"

        "libsimpleSwakFunctionObjects.so"
        "libswakLagrangianParser.so"
        "libswakFunctionObjects.so"
        "libsimpleLagrangianFunctionObjects.so"
);
floquation is offline   Reply With Quote

Old   January 31, 2017, 07:36
Default
  #3
New Member
 
Markus Sack
Join Date: Jul 2015
Posts: 2
Rep Power: 0
fritzowski is on a distinguished road
Thank you,

I'll test it tomorrow.

And I think it is ok now to be paranoid, I'm tracked by particles everywhere
fritzowski is offline   Reply With Quote

Reply

Tags
query, swak4foam


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
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


All times are GMT -4. The time now is 13:00.