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

[Other] Interpolate a solution from a csv or text file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 3, 2022, 05:47
Default Interpolate a solution from a csv or text file
  #1
Member
 
Join Date: Dec 2015
Posts: 74
Rep Power: 10
WhiteW is on a distinguished road
Dear all,
Is there a way to interpolate a preliminary solution (calculated with an external code) in an existent OpenFOAM grid?
I was thinking about a .csv or .txt file to be interpolated on an existent OpenFOAM grid.
The file should be structured somehow like this:
Code:
x,y,z,p,Ux,Uy,Uz
0,0,0,1000,1,0,0
0.1,0,0,1000,1,0,0
...
1,1,1,1000,1,0,0
I checked the conversion methos available in OpenFOAM but they are related to the conversion of a mesh or to the conversion of another commercial software input (fluent3DmeshToFoam and similar).
I found something in the sampleDict function, it allows to save solution in a raw format, however it works only to export the solution, not for the import.
I tried with mapFieldsbut it works only with other openFoam solution.
I alos checked different other utilities in openFoam but none of them seems to be helpful.
Can anyone suggest me an utility or a method to achieve this interpolation?
Thanks!

whiteW
WhiteW 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
[openSmoke] LaminarSMOKE compilation error mdhfiz OpenFOAM Community Contributions 7 October 4, 2022 13:57
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 18:13
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 16:02
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 11:32
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 12:41


All times are GMT -4. The time now is 18:07.