|
[Sponsors] |
[Other] Interpolate a solution from a csv or text file |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 3, 2022, 05:47 |
Interpolate a solution from a csv or text file
|
#1 |
Member
Join Date: Dec 2015
Posts: 74
Rep Power: 10 |
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 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 |
|
|
|
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 |