|
[Sponsors] |
August 1, 2021, 09:41 |
the problem regarding boundarydata importing
|
#1 |
Senior Member
|
Hi guys, I am using OPENFOAM-Extend4.1 and I need to import boundarydata. As shown below, the pressure file is included by using #include command. However, when I run the simulation, the error appearred. Do you have any idea?
Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | foam-extend: Open Source CFD | | \\ / O peration | Version: 4.1 | | \\ / A nd | Web: http://www.foam-extend.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class scalarAverageField; object values; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // Average 0 // Data on points #include "p.data" Code:
--> FOAM FATAL IO ERROR: incorrect first token, expected <int> or '(', found on line 21 the word '#include' Code:
400 ( 97692.8 97769.8 97847.8 97926.4 98005.3 98084.3 98162.8 ..... ) Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | foam-extend: Open Source CFD | | \\ / O peration | Version: 4.1 | | \\ / A nd | Web: http://www.foam-extend.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class scalarAverageField; object values; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // Average 0 // Data on points 400 ( -233.563 -156.563 -78.563 0.037 78.937 157.937 ... ) |
|
August 1, 2021, 10:25 |
|
#2 |
Member
Petros Ampatzidis
Join Date: Oct 2018
Location: Bath, UK
Posts: 64
Rep Power: 7 |
Hi,
I have experienced this in the past and I don't know why this error occurs. But the question is: why don't you just use the second format, which actually works? At least, this is what I did in the end. Best, Petros |
|
August 1, 2021, 11:01 |
|
#3 | |
Senior Member
|
Quote:
Yes, the second format definitely works but I need to arrange a lot of files manually, which takes a long time since I don't know if it is possible to use Matlab for writing a script of allowing writing pressure data append a basic empty file with a header. |
||
August 4, 2021, 04:47 |
|
#4 |
Senior Member
|
Does anyone have ideas?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SU2-7.0.1 on ubuntu 18.04 | hyunko | SU2 Installation | 7 | March 16, 2020 04:37 |
Problem with importing parasolid file in GAMBIT | samanlak98 | Mesh Generation & Pre-Processing | 0 | June 21, 2019 19:11 |
"There was a problem importing the mesh..." | JohMey | CFX | 6 | February 13, 2018 10:19 |
Problem in Importing CFX results in Tecplot 360-2012 | safikhani_hamed | CFX | 7 | October 12, 2013 06:29 |
Problem of importing the geometry | Dany | CFX | 4 | March 28, 2003 09:49 |