|
[Sponsors] |
[OpenFOAM] paraFoam error message on interPhaseChangeDyFoam propeller tutrial |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 22, 2018, 04:53 |
paraFoam error message on interPhaseChangeDyFoam propeller tutrial
|
#1 | ||
New Member
Christian Wolf
Join Date: Mar 2009
Posts: 27
Rep Power: 17 |
Hello!
I am working with the following tutorial: OpenFOAM-4.1/tutorials/multiphase/interPhaseChangeDyMFoam/propeller The case runs with 'Allrun', but I face a problem showing the results in paraFoam. When clicking the button 'Apply' in paraFoam, I receive the following error message: Quote:
The mentioned file ./constant/polyMesh/faces looks like binary code: Quote:
|
|||
December 13, 2018, 08:57 |
|
#2 |
New Member
Christian Wolf
Join Date: Mar 2009
Posts: 27
Rep Power: 17 |
Really no idea?
|
|
December 22, 2018, 10:53 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answers:
__________________
|
|
July 17, 2019, 11:39 |
motorBike tutorial not working
|
#4 |
Member
Jan Majcher
Join Date: Nov 2018
Posts: 39
Rep Power: 8 |
Hello everyone,
I am new to OpenFOAM and CFD in general. I have watched and read multiple tutorials though, searched for a solution to the question below for many hours and could not find it. I'm trying to run the motorBike tutorial in OpenFOAM 6. Firstly, I did it with Allrun, then tried "manually" doing each step. Both attempts ended up in this error, when trying to visualise the project in ParaView: Code:
In C:\bbd\ecd3383f\build\superbuild\paraview\src\VTK\IO\Geometry\vtkOpenFOAMReader.cxx, line 5463 vtkOpenFOAMReaderPrivate (000002A31F00F6A0): Error reading line 24971 of D:\....\motorBike\constant/polyMesh/faces: Expected punctuation token ')', found ERROR: In C:\bbd\ecd3383f\build\superbuild\paraview\src\VTK\Common\ExecutionModel\vtkExecutive.cxx, line 782 vtkPVCompositeDataPipeline (000002A32F010C20): Algorithm vtkPOpenFOAMReader(000002A32F3B07C0) returned failure for request: vtkInformation (000002A330273980) Debug: Off Modified Time: 318329 Reference Count: 1 Registered Events: (none) Request: REQUEST_DATA FORWARD_DIRECTION: 0 ALGORITHM_AFTER_FORWARD: 1 FROM_OUTPUT_PORT: 0 Code:
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 6 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format binary; class faceCompactList; location "constant/polyMesh"; object faces; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 1103393 ( " ' + 0 4 8 < A F J O S W [ ` d i m q u z ƒ ‡ ‹ “ ˜ ! % ) . 3 8 < @ D H L Q W \ a e i m q u y } ‡ ‹ “ — › Ÿ ! & + / 3 7 ; @ D H L P T X \ ` d h l p t x | † Š “ ˜ œ * * " & + 0 4 9 > B F J N R V Z _ d h l p t x | € „ ‰ Ž “ — œ * " ' + / 3 8 < @ D H L P U [...] This is the the sequence of commands I'm using, when performing everything manually: Meshing: Rename 0 folder 0.org blockMesh surfaceFeatures decomposePar mpirun -np (number of cores) snappyHexMesh -overwrite -parallel reconstructParMesh -constant delete all processor folders delete folder 0 rename folder 0.org to 0 Simulation: decomposePar mpirun -n (number of cores) renumberMesh -overwrite -parallel mpirun -np (number of cores) simpleFoam -parallel reconstructPar -latestTime I copied the motorbike.obj from the geometry resources in FOAM_TUTORIALS. Paraview does not have any issues with the visualization of the object and the file looks OK with all the regions defined inside. Thank you for any help. Hope I targeted the forum properly. Last edited by MaySea; July 18, 2019 at 06:49. |
|
July 18, 2019, 09:39 |
|
#5 |
Member
Jan Majcher
Join Date: Nov 2018
Posts: 39
Rep Power: 8 |
Anybody? I feel like I'm missing something easy here.
---- @jcw did the answer provided by @wyldckat work for you? I'm facing very similar issues, with the most recent version of ParaView and OpenFOAM 6 when executing Allrun for a motorBike tutorial. Did you find the solution? Cheers. Last edited by wyldckat; July 18, 2019 at 19:32. Reason: Merged posts a few minutes apart |
|
July 18, 2019, 19:39 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick questions @MaySea:
|
|
July 19, 2019, 06:59 |
|
#7 |
Member
Jan Majcher
Join Date: Nov 2018
Posts: 39
Rep Power: 8 |
Hi @wyldckat
1. OpenFOAM was installed by an HPCC admin in my institution. 2. I am running OpenFOAM via HPC cluster with linux installed. The OpenFOAM is using 32-bit labels, as concluded by echoing like you suggested. I'm copying the cases from HPCC Linux to visualize them on a PC Windows, as ParaView can't be installed on HPCC. The ParaView is x64 bit. I am indeed creating the .foam file to visualize them. I guess that if its the matter of labels like you suggest, the next step will be to consult the problem with the admin. Prob they had these issues before. What's weird is that I performed other, basic simulations using simpleFoam on the same setup and they worked well. The only difference is that I used some downloaded .stl geometry, not .obj copied from the tutorials. Thanks for the engagement. |
|
July 19, 2019, 08:21 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: Oh, then this might be a problem with the Endianess... what I mean is that the HPC system you are using, might be ordering the values in one way, but on the workstation is uses the other order.
There is an old thread on this topic: Big-endian to little-endian conversion. How to do it in OpenFOAM? You can check the type of Endianess the HPC system is using if you run: Code:
uname -a |
|
July 22, 2019, 04:50 |
|
#9 | |
New Member
Christian Wolf
Join Date: Mar 2009
Posts: 27
Rep Power: 17 |
Quote:
Sorry. I have not been sucessful. It is still not working. |
||
July 24, 2019, 11:41 |
|
#10 |
Member
Jan Majcher
Join Date: Nov 2018
Posts: 39
Rep Power: 8 |
I checked the endianess. Assuming by default that Windows runs on little endian bytes, there should not be any conflict, as the HPCC linux is little endian too:
Code:
[...] $ lscpu | grep "Byte Order" Byte Order: Little Endian |
|
July 25, 2019, 19:42 |
|
#11 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer @MaySea: Please try running OpenFOAM's tutorial case "incompressible/icoFoam/cavity/cavity" on the HPC system. You only need 1 core, but make sure you launch it in a job and not on the login node. I say this because the login node might be Little Endian, but the HPC nodes might be Big Endian...
But before running the case, check if the file "system/controlDict" has the "writeFormat" line set to "binary" and not "ascii". You can run the case with this command: Code:
foamRunTutorials Code:
blockMesh icoFoam |
|
July 29, 2019, 10:26 |
|
#12 |
Member
Jan Majcher
Join Date: Nov 2018
Posts: 39
Rep Power: 8 |
@Wyldckat, so...
I just changed the writeFormat in controlDict to ascii from binary and it obviously worked well. When its set to binary its probably the endianess problem, as indeed its the login node which I checked to be little endian, not the batch job nodes. I don't need a binary format, so changing to ascii solves the problem for me. Thank you. |
|
Tags |
error, interphasechangedymfoam, parafoam, propeller, tutorial |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error with snappyHexMesh when using another propeller in propeller tutorial | quarkz | OpenFOAM Running, Solving & CFD | 4 | May 24, 2021 16:59 |
[OpenFOAM.com] paraFoam cannot open due to Qt issues - [Solved/Information] | u2berggeist | OpenFOAM Installation | 2 | July 2, 2018 18:03 |
how to run the propeller Tutrial | immortality | OpenFOAM Running, Solving & CFD | 10 | February 22, 2014 10:33 |
[OpenFOAM] OpenFoam (Ubuntu): paraFoam via Xming+PuTTY | raketenmaid | ParaView | 4 | February 5, 2013 06:20 |
Modelling a propeller | tomg | STAR-CCM+ | 4 | April 28, 2011 18:22 |