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

Creating a tool to interpolate results

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 24, 2013, 19: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: 4
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: 4
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
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 21:36
Fluent3DMeshToFoam simvun OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 48 May 14, 2012 05:20
OpenFOAM - Validation of Results Ahmed OpenFOAM Running, Solving & CFD 9 June 22, 2011 18:59
Problems with Meshing: Collapsed Cells Emmanuel Resch CD-adapco 1 July 30, 2007 03:02


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