|
[Sponsors] |
March 24, 2013, 19:47 |
Creating a tool to interpolate results
|
#1 |
New Member
Luis Batista
Join Date: Mar 2013
Location: Lisboa / Setúbal
Posts: 17
Rep Power: 13 |
Dear Users,
I am developing a function to interpolate results between nodal results points for an incompressible, laminar, 2D flow. I am aware that there are some built-in function inside OpenFoam to do this by sampleDict but I would need to implement a 9 node interpolation polynomial. I can write an external subroutine to read the results and find the interpolated results, however, I has wondering if: 1- Can I add write an interpolation routine inside OpenFoam and add it to sampleDict in order that I can call it through the command-line sample. 2- In the case 1) is possible, I need to solve a small linear system for U and p. I have a couple of them programmed in Fortran and I could reprogram them in C++, however, isn't it possible to use the linear matrix solvers from OpenFoam? If so, how can this be achieved? 3- Which procedures do I have available to access the results from the solver in order that I can manipulate the results? note: I am a beginner in OpenFoam, if you take the patience to answer, please mind that Best regards, Luis Batista |
|
April 6, 2013, 02:06 |
|
#2 |
New Member
Join Date: Jun 2012
Posts: 1
Rep Power: 0 |
Hi Luis,
I had implemented a new interpolation technique for FEM calculations for force and moments in a simulation software. Depending on how far your node sets are the error in interpolation will vary. Let me know if you are interested in it. BR, Raghunandan Patthar raghunandan.patthar@gmail.com |
|
April 11, 2013, 09:15 |
|
#3 |
New Member
Luis Batista
Join Date: Mar 2013
Location: Lisboa / Setúbal
Posts: 17
Rep Power: 13 |
Hello,
I will try to express better my needs. I have built in FORTRAN an interpolation tool that carries out operations in the result files (p.e. Ux, Uy, pressure). I would like to write this interpolation tool in c++ and use it as an "interporlation scheme", that I can use in other OpenFoam operations, as per example, for sampling data for plotting throught sample. I believe this should be possible but I would like to hear from more experienced people if this is wise to do. Regards, Luis |
|
Tags |
interpolation, linear system |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] Fluent3DMeshToFoam | simvun | OpenFOAM Meshing & Mesh Conversion | 50 | January 19, 2020 16:33 |
OpenFOAM - Validation of Results | Ahmed | OpenFOAM Running, Solving & CFD | 10 | May 13, 2018 19:28 |
Oscillating Airfoil Poor Results at High k (reduced frequency) | dancfd | OpenFOAM Running, Solving & CFD | 3 | November 4, 2013 09:32 |
Transient Run - Output "Time" in partial results? | evcelica | CFX | 2 | May 16, 2012 22:36 |
Problems with Meshing: Collapsed Cells | Emmanuel Resch | Siemens | 1 | July 30, 2007 04:02 |