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

Creating a tool to interpolate results

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 24, 2013, 18:47
Default Creating a tool to interpolate results
  #1
New Member
 
Luis Batista
Join Date: Mar 2013
Location: Lisboa / Setúbal
Posts: 17
Rep Power: 13
Luis Batista is on a distinguished road
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
Luis Batista is offline   Reply With Quote

Old   April 6, 2013, 01:06
Default
  #2
RPS
New Member
 
Join Date: Jun 2012
Posts: 1
Rep Power: 0
RPS is on a distinguished road
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
RPS is offline   Reply With Quote

Old   April 11, 2013, 08:15
Default
  #3
New Member
 
Luis Batista
Join Date: Mar 2013
Location: Lisboa / Setúbal
Posts: 17
Rep Power: 13
Luis Batista is on a distinguished road
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
Luis Batista is offline   Reply With Quote

Reply

Tags
interpolation, linear system


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
[Commercial meshers] Fluent3DMeshToFoam simvun OpenFOAM Meshing & Mesh Conversion 50 January 19, 2020 15:33
OpenFOAM - Validation of Results Ahmed OpenFOAM Running, Solving & CFD 10 May 13, 2018 18:28
Oscillating Airfoil Poor Results at High k (reduced frequency) dancfd OpenFOAM Running, Solving & CFD 3 November 4, 2013 08:32
Transient Run - Output "Time" in partial results? evcelica CFX 2 May 16, 2012 21:36
Problems with Meshing: Collapsed Cells Emmanuel Resch Siemens 1 July 30, 2007 03:02


All times are GMT -4. The time now is 12:33.