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

How to do linear fit to some points in Openfoam?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 5, 2016, 05:40
Default How to do linear fit to some points in Openfoam?
  #1
New Member
 
Jun Zhang
Join Date: Jan 2014
Posts: 12
Rep Power: 12
bigfeather is on a distinguished road
Hi All

At each calculating time step, I obtain the positions for some particular points in OpenFoam. For example, these points have velocity larger than 100 m/s. Their positions change with run-time.

The format of the postions of these points are as follows:

point 1 (x1, y1)
point 2 (x2, y2)
point 3 (x3, y3)
point 4 (x4, y4)
.....

I need to do a linear fit to all of these points and get the slope of the fitting line.

Is there any existing function or library in OpenFOAM I can directly use?

Many thanks!

Last edited by bigfeather; November 5, 2016 at 05:43. Reason: For clarity
bigfeather is offline   Reply With Quote

Old   November 7, 2016, 05:39
Default
  #2
New Member
 
Jun Zhang
Join Date: Jan 2014
Posts: 12
Rep Power: 12
bigfeather is on a distinguished road
Anyone knows how to do it? Thanks.
bigfeather is offline   Reply With Quote

Old   November 14, 2016, 17:19
Default
  #3
Senior Member
 
khedar
Join Date: Oct 2016
Posts: 111
Rep Power: 9
khedar is on a distinguished road
Maybe you can try 'probes':

http://cfd.direct/openfoam/user-guid...hs-monitoring/
khedar 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
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 15:54
OpenFOAM 4.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 2 October 6, 2017 05:40
no solution in second order schemes immortality OpenFOAM Running, Solving & CFD 14 May 23, 2013 01:39
suitable boundary condition for scavenging process? immortality OpenFOAM Running, Solving & CFD 3 January 25, 2013 19:10
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 06:25


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