|
[Sponsors] |
How to do linear fit to some points in Openfoam? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 5, 2016, 06:40 |
How to do linear fit to some points in Openfoam?
|
#1 |
New Member
Jun Zhang
Join Date: Jan 2014
Posts: 12
Rep Power: 12 |
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 06:43. Reason: For clarity |
|
November 7, 2016, 06:39 |
|
#2 |
New Member
Jun Zhang
Join Date: Jan 2014
Posts: 12
Rep Power: 12 |
Anyone knows how to do it? Thanks.
|
|
November 14, 2016, 18:19 |
|
#3 |
Senior Member
khedar
Join Date: Oct 2016
Posts: 111
Rep Power: 10 |
||
|
|
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 16:54 |
OpenFOAM 4.0 Released | CFDFoundation | OpenFOAM Announcements from OpenFOAM Foundation | 2 | October 6, 2017 06:40 |
no solution in second order schemes | immortality | OpenFOAM Running, Solving & CFD | 14 | May 23, 2013 02:39 |
suitable boundary condition for scavenging process? | immortality | OpenFOAM Running, Solving & CFD | 3 | January 25, 2013 20: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 07:25 |