Git Product home page Git Product logo

cgnstofromfoam's Introduction

Description

This branch was forked and adapted from svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_2.0/OSIG/TurboMachinery/ via mirror https://github.com/Unofficial-Extend-Project-Mirror/openfoam-extend-Breeder2.0-OSIG-TurboMachinery

That original repository is part of the TurboMachinery SIG, at http://openfoamwiki.net/index.php/Sig_Turbomachinery

All of the non-CGNS related files were removed, given that this repository focuses on porting CGNS to more recent OpenFOAM versions.

For any problems with this fork, please report it here: https://github.com/wyldckat/cgnsToFromFoam/issues

Structure

The folder "applications" contains new applications.

The folder "src" contains new libraries.

Requirements

This is currently an experimental port for OpenFOAM 5.x and it relies on more recent CGNS and HDF5 libraries, which usually are provided by your Linux Distribution.

Therefore, beyond the usual requirements which are already needed for building OpenFOAM from source code, you also need to install those libraries, which can be done as follows:

  • To install those packages on Ubuntu 14.04 or newer, run:

    sudo apt install libhdf5-dev libcgns-dev autoconf git
    
  • To install those packages on CentOS 7, run (one line at a time):

    su -
    yum install epel-release
    yum install cgnslib-devel git
    exit
    

Installation and respective git branches

Currently there are the following branches:

  • OF5x - This branch will build with OpenFOAM 5.x

Quick usage instructions:

  1. Clone the repository:

    git clone https://github.com/wyldckat/cgnsToFromFoam.git
    
  2. Checkout the right branch, e.g. for OF5x:

    cd cgnsToFromFoam
    git checkout OF5x
    
  3. Now build:

    wmake all -j src
    wmake all -j applications
    

License

Part of the code contained in this repository is following the same license as OpenFOAM, namely the GNU General Public License v3. Other parts are in GNU General Public License v2, but was indicated to be upgradable on a need basis.

cgnstofromfoam's People

Contributors

wyldckat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cgnstofromfoam's Issues

Failure on shm meshes

Hi Bruno,

I've just tried to convert snappyHexMesh meshes to cgns and it's having trouble looking up cell vertices. Below is the output (I've run snappy in parallel with -overwrite and reconstructed back in to /constant, the same problem exists if you mesh in serial and use -time to pick a time level from snappy output).

/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5.x                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 5.x-197d9d3bf20a
Exec   : foamToCGNS -constant -noZero
Date   : Dec 14 2018
Time   : 13:57:19
Host   : "instance-1"
PID    : 6167
I/O    : uncollated
Case   : /home/simonjameshubbard/motorBike
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create mesh for time = constant
Default value for rho: 1
Warning : log file not found. No convergence history will be included.
Time = constant
CGNS output file : "/home/simonjameshubbard/motorBike/ConversionCGNS/constant.cgns"
Processing the mesh: 404990 nodes, 352465 cells
Processing mesh connectivity: 352465 cells of type: "MIXED"
--> FOAM FATAL ERROR: 
Wrong number of vertices in cell
    expected 4,5,6, or 8, found 0
    From function foamToCGNS
    in file writeCGNS.H at line 219.
FOAM aborting
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::error::abort() at ??:?
#2  ? at ??:?
#3  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#4  ? at ??:?
Aborted (core dumped)

The mesh seems OK - checkMesh doesn'tflag anything up.

This was from the standard $FOAM_TUTORIALS/incompressible/simpleFoam/motorBike case. I've tried it on other similar cases with the same result. It will work fine on the results of blockMesh, but seems to struggle with snappy.

Let me know if there's anything else I can do to help.

Thanks,

Simon.

case2 needs revising?

Quoting from issue #6:

suggested case2 with cycle type of perio1 boundary is outdated, but changing "cycle" type to "patch" helps to blockMesh.

Installation path update for Ubuntu 22.04

Quoting from issue #6:

I have added -I/usr/include/hdf5/serial/ to EXE_INC in 2 options files in applications for including necessary headers of hdf5 and copied libhdf5_cpp.so from /usr/lib/x86_64-linux-gnu/hdf5/serial and libcgns.so from /usr/lib/x86_64-linux-gnu to /home/nick/OpenFOAM/cgnsToFromFoam/src/libcgnsoo_3.0/platforms/linux64GccDPInt32Opt/lib folder.

foamToCGNS compilation

Hi Bruno,
I'm interested in the foamToCGNS converter. I get the following when trying to wmake it. It looks like it is unhappy with OF5x headers. I have compiled cgnsToFoam successfully, Any help much appreciated.
Thanks,
Simon

This is a Foundation repo install under ubuntu 16.04 LTS.

g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100 -I/home/simon/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude -I/home/simon/OpenFOAM/OpenFOAM-5.x/src/meshTools/lnInclude -I/home/simon/OpenFOAM/OpenFOAM-5.x/applications/solvers/ -I/home/simon/OpenFOAM/OpenFOAM-5.x/src/transportModels -I/home/simon/OpenFOAM/OpenFOAM-5.x/src/turbulenceModels -I/home/simon/OpenFOAM/OpenFOAM-5.x/src/transportModels/incompressible/lnInclude -I/home/simon/OpenFOAM/OpenFOAM-5.x/src/turbulenceModels/RAS/incompressible/lnInclude -I/home/simon/cgnsToFromFoam/applications/utilities/postProcessing/dataConversion/foamToCGNS/../../../../../src/libcgnsoo_3.0/platforms/linux64GccDPInt32Opt/include -I/home/simon/cgnsToFromFoam/applications/utilities/postProcessing/dataConversion/foamToCGNS/../../../../../src/cgnslib_2.5/platforms/linux64GccDPInt32Opt/include -IlnInclude -I. -I/home/simon/OpenFOAM/OpenFOAM-5.x/src/OpenFOAM/lnInclude -I/home/simon/OpenFOAM/OpenFOAM-5.x/src/OSspecific/POSIX/lnInclude   -fPIC -DOPENFOAM_VERSION=150 -DEXPORT_CYCLIC_BOUNDARIES -c foamToCGNS.C -o Make/linux64GccDPInt32Opt/foamToCGNS.o
In file included from /home/simon/OpenFOAM/OpenFOAM-5.x/src/OpenFOAM/lnInclude/setRootCase.H:9:0,
                 from foamToCGNS.C:94:
/home/simon/OpenFOAM/OpenFOAM-5.x/src/OpenFOAM/lnInclude/listOutput.H: In function ‘int main(int, char**)’:
/home/simon/OpenFOAM/OpenFOAM-5.x/src/OpenFOAM/lnInclude/listOutput.H:33:31: error: template argument 1 is invalid
         << fvPatchField<vector>::dictionaryConstructorTablePtr_->sortedToc()
                               ^
foamToCGNS.C:262:28: error: ‘endTime’ was not declared in this scope
  for (label i=startTime; i<endTime; i++)
                            ^
In file included from foamToCGNS.C:272:0:
writeCGNS.H:60:26: error: ‘Dimensional’ is not a member of ‘CGNSOO’
 cgnsBase.writeDataClass( CGNSOO::Dimensional );
                          ^
In file included from foamToCGNS.C:272:0:
writeCGNS.H:79:48: error: ‘GoverningEquationsNull’ is not a member of ‘CGNSOO’
 CGNSOO::GoverningEquationsType_t equationSet = CGNSOO::GoverningEquationsNull;
                                                ^
writeCGNS.H:88:6: error: ‘NSTurbulentIncompressible’ is not a member of ‘CGNSOO’
 case CGNSOO::NSTurbulentIncompressible:
      ^
writeCGNS.H:90:35: error: ‘TwoEquation_JonesLaunder’ is not a member of ‘CGNSOO’
  cgnsFlowEq.writeTurbulenceModel( CGNSOO::TwoEquation_JonesLaunder );
                                   ^
writeCGNS.H:92:6: error: ‘NSTurbulent’ is not a member of ‘CGNSOO’
 case CGNSOO::NSTurbulent:
      ^
writeCGNS.H:94:35: error: ‘TwoEquation_JonesLaunder’ is not a member of ‘CGNSOO’
  cgnsFlowEq.writeTurbulenceModel( CGNSOO::TwoEquation_JonesLaunder );
                                   ^
writeCGNS.H:96:6: error: ‘NSLaminar’ is not a member of ‘CGNSOO’
 case CGNSOO::NSLaminar:
      ^
writeCGNS.H:104:47: error: ‘NonTimeAccurate’ is not a member of ‘CGNSOO’
 cgnsBase.writeSimulationType( (steadyState) ? CGNSOO::NonTimeAccurate : CGNSOO::TimeAccurate );
                                               ^
writeCGNS.H:104:73: error: ‘TimeAccurate’ is not a member of ‘CGNSOO’
 cgnsBase.writeSimulationType( (steadyState) ? CGNSOO::NonTimeAccurate : CGNSOO::TimeAccurate );
                                                                         ^
In file included from foamToCGNS.C:272:0:
writeCGNS.H:305:8: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   std::auto_ptr<std::vector<double> > p_data( new std::vector<double>(psf.size()) );
        ^
In file included from /usr/include/c++/5/memory:81:0,
                 from foamToCGNS.C:66:
/usr/include/c++/5/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^
In file included from foamToCGNS.C:272:0:
writeCGNS.H:345:8: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   std::auto_ptr< std::vector<double> > p_data_x( new std::vector<double>(pvf.size()) );
        ^
In file included from /usr/include/c++/5/memory:81:0,
                 from foamToCGNS.C:66:
/usr/include/c++/5/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^
In file included from foamToCGNS.C:272:0:
writeCGNS.H:346:8: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   std::auto_ptr< std::vector<double> > p_data_y( new std::vector<double>(pvf.size()) );
        ^
In file included from /usr/include/c++/5/memory:81:0,
                 from foamToCGNS.C:66:
/usr/include/c++/5/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^
In file included from foamToCGNS.C:272:0:
writeCGNS.H:347:8: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   std::auto_ptr< std::vector<double> > p_data_z( new std::vector<double>(pvf.size()) );
        ^
In file included from /usr/include/c++/5/memory:81:0,
                 from foamToCGNS.C:66:
/usr/include/c++/5/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^
In file included from foamToCGNS.C:272:0:
writeCGNS.H:494:46: error: ‘Abutting1to1’ is not a member of ‘CGNSOO’
    CGNSOO::GridConnectivityType_t ctype    = CGNSOO::Abutting1to1;
                                              ^
writeCGNS.H:506:43: error: ‘PointListDonor’ is not a member of ‘CGNSOO’
    CGNSOO::PointSetType_t donorpsettype = CGNSOO::PointListDonor;
                                           ^
/home/simon/OpenFOAM/OpenFOAM-5.x/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/foamToCGNS.o' failed
make: *** [Make/linux64GccDPInt32Opt/foamToCGNS.o] Error 1
simon@SID-2905:~/cgnsToFromFoam/applications/utilities/postProcessing/dataConversion/foamToCGNS$ wmake all > wmake.foamToCGNS
In file included from /home/simon/OpenFOAM/OpenFOAM-5.x/src/OpenFOAM/lnInclude/setRootCase.H:9:0,
                 from foamToCGNS.C:94:
/home/simon/OpenFOAM/OpenFOAM-5.x/src/OpenFOAM/lnInclude/listOutput.H: In function ‘int main(int, char**)’:
/home/simon/OpenFOAM/OpenFOAM-5.x/src/OpenFOAM/lnInclude/listOutput.H:33:31: error: template argument 1 is invalid
         << fvPatchField<vector>::dictionaryConstructorTablePtr_->sortedToc()
                               ^
foamToCGNS.C:262:28: error: ‘endTime’ was not declared in this scope
  for (label i=startTime; i<endTime; i++)
                            ^
In file included from foamToCGNS.C:272:0:
writeCGNS.H:60:26: error: ‘Dimensional’ is not a member of ‘CGNSOO’
 cgnsBase.writeDataClass( CGNSOO::Dimensional );
                          ^
In file included from foamToCGNS.C:272:0:
writeCGNS.H:79:48: error: ‘GoverningEquationsNull’ is not a member of ‘CGNSOO’
 CGNSOO::GoverningEquationsType_t equationSet = CGNSOO::GoverningEquationsNull;
                                                ^
writeCGNS.H:88:6: error: ‘NSTurbulentIncompressible’ is not a member of ‘CGNSOO’
 case CGNSOO::NSTurbulentIncompressible:
      ^
writeCGNS.H:90:35: error: ‘TwoEquation_JonesLaunder’ is not a member of ‘CGNSOO’
  cgnsFlowEq.writeTurbulenceModel( CGNSOO::TwoEquation_JonesLaunder );
                                   ^
writeCGNS.H:92:6: error: ‘NSTurbulent’ is not a member of ‘CGNSOO’
 case CGNSOO::NSTurbulent:
      ^
writeCGNS.H:94:35: error: ‘TwoEquation_JonesLaunder’ is not a member of ‘CGNSOO’
  cgnsFlowEq.writeTurbulenceModel( CGNSOO::TwoEquation_JonesLaunder );
                                   ^
writeCGNS.H:96:6: error: ‘NSLaminar’ is not a member of ‘CGNSOO’
 case CGNSOO::NSLaminar:
      ^
writeCGNS.H:104:47: error: ‘NonTimeAccurate’ is not a member of ‘CGNSOO’
 cgnsBase.writeSimulationType( (steadyState) ? CGNSOO::NonTimeAccurate : CGNSOO::TimeAccurate );
                                               ^
writeCGNS.H:104:73: error: ‘TimeAccurate’ is not a member of ‘CGNSOO’
 cgnsBase.writeSimulationType( (steadyState) ? CGNSOO::NonTimeAccurate : CGNSOO::TimeAccurate );
                                                                         ^
In file included from foamToCGNS.C:272:0:
writeCGNS.H:305:8: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   std::auto_ptr<std::vector<double> > p_data( new std::vector<double>(psf.size()) );
        ^
In file included from /usr/include/c++/5/memory:81:0,
                 from foamToCGNS.C:66:
/usr/include/c++/5/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^
In file included from foamToCGNS.C:272:0:
writeCGNS.H:345:8: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   std::auto_ptr< std::vector<double> > p_data_x( new std::vector<double>(pvf.size()) );
        ^
In file included from /usr/include/c++/5/memory:81:0,
                 from foamToCGNS.C:66:
/usr/include/c++/5/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^
In file included from foamToCGNS.C:272:0:
writeCGNS.H:346:8: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   std::auto_ptr< std::vector<double> > p_data_y( new std::vector<double>(pvf.size()) );
        ^
In file included from /usr/include/c++/5/memory:81:0,
                 from foamToCGNS.C:66:
/usr/include/c++/5/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^
In file included from foamToCGNS.C:272:0:
writeCGNS.H:347:8: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   std::auto_ptr< std::vector<double> > p_data_z( new std::vector<double>(pvf.size()) );
        ^
In file included from /usr/include/c++/5/memory:81:0,
                 from foamToCGNS.C:66:
/usr/include/c++/5/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^
In file included from foamToCGNS.C:272:0:
writeCGNS.H:494:46: error: ‘Abutting1to1’ is not a member of ‘CGNSOO’
    CGNSOO::GridConnectivityType_t ctype    = CGNSOO::Abutting1to1;
                                              ^
writeCGNS.H:506:43: error: ‘PointListDonor’ is not a member of ‘CGNSOO’
    CGNSOO::PointSetType_t donorpsettype = CGNSOO::PointListDonor;
                                           ^
make: *** [Make/linux64GccDPInt32Opt/foamToCGNS.o] Error 1

Errors compiling on OF5x, Ubuntu 18.04

Hello, I've installed OF5x on Ubuntu 18.04 on WSL. Then I've followed the instructions to install the cgns converter.
I can compile the src folder without errors, but when it comes to the applications folder. I attach the log file with the errors.
Thanks in advance
log_wmake.txt

Error with Allrun command in the turbomachinery tutorial

Hello Bruno,

I got the cgnsToFromFoam on github, following the README.md, I was able to install and compile all necessary packages and libraries. But when I tried running "./Allrun", I got some warning and error messages I could not understand.
On the terminal;
Create time

--> FOAM Warning : Cell type "QUAD_4" found in zone 0, section 1 has no OpenFOAM equivalence - skipping --> FOAM Warning : Cell type "BAR_2" found in zone 0, section 2 has no OpenFOAM equivalence - skipping --> FOAM Warning : Cell type "NODE" found in zone 0, section 3 has no OpenFOAM equivalence - skipping Output of mesh and boundary conditions Running simpleFoam... Done.

And on the log file;
`
--> FOAM FATAL IO ERROR:
problem while reading header for object turbulenceProperties

file: /home/p7311/cgnsToFromFoam/tutorials/cgnsConverters/test1/case/constant/turbulenceProperties at line 1.

From function virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::readStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const
in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 526.

FOAM exiting`

What could be wrong, Am I to completely remove the header? or what may I do to get going on running the tutorial? I use Ubuntu 18.04.2 LTS.

Thanks

Cannot compile

Hi Bruno, I cannot seem to make it compile. Is there something missing from the instructions? Apologies if this is something obvious. Here is the error when running wmake all -j src (after I have sourced OF5):

Compiling enabled on 4 cores
wmake src
++ pwd
+ LIBCGNSOOHOME=/home/poulos/OpenFOAM/cgnsToFromFoam/src/libcgnsoo_3.0
+ '[' -e /home/poulos/OpenFOAM/cgnsToFromFoam/src/libcgnsoo_3.0 -a '!' -r /home/poulos/OpenFOAM/cgnsToFromFoam/src/libcgnsoo_3.0/platforms/linux64GccDPInt32Opt/lib/libcgnsoo3.a ']'
+ pushd /home/poulos/OpenFOAM/cgnsToFromFoam/src/libcgnsoo_3.0
~/OpenFOAM/cgnsToFromFoam/src/libcgnsoo_3.0 ~/OpenFOAM/cgnsToFromFoam/src
+ ./bootstrap
+ [ ! -r ./NEWS ]
+ [ ! -r ./THANKS ]
+ [ ! -r ./README ]
+ [ ! -r ./AUTHORS ]
+ [ ! -r ./ChangeLog ]
+ rm -rf aclocal.m4 autom4te.cache
+ aclocal -I config
./bootstrap: 30: ./bootstrap: aclocal: not found
+ libtoolize --force --copy
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
libtoolize: copying file 'config/ltmain.sh'
libtoolize: You should add the contents of the following files to 'aclocal.m4':
libtoolize:   '/usr/share/aclocal/libtool.m4'
libtoolize:   '/usr/share/aclocal/ltoptions.m4'
libtoolize:   '/usr/share/aclocal/ltsugar.m4'
libtoolize:   '/usr/share/aclocal/ltversion.m4'
libtoolize:   '/usr/share/aclocal/lt~obsolete.m4'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.in,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
+ autoheader
./bootstrap: 32: ./bootstrap: autoheader: not found
+ automake --add-missing --copy
./bootstrap: 33: ./bootstrap: automake: not found
+ autoconf
./bootstrap: 34: ./bootstrap: autoconf: not found
+ ./configure --prefix=/home/poulos/OpenFOAM/cgnsToFromFoam/src/libcgnsoo_3.0/platforms/linux64GccDPInt32Opt --with-CGNSLIBHOME=/usr
./Allwmake: line 22: ./configure: No such file or directory
+ CORES=4
+ make -j 4
make: *** No targets specified and no makefile found.  Stop.
+ make install
make: *** No rule to make target 'install'.  Stop.
+ popd
~/OpenFOAM/cgnsToFromFoam/src

I am working on Ubuntu 16.04.

Thanks!

Element must be a fixed size using foamToCGNS (CGNSOO::cgns_exception)

Hello!
I have installed OpenFOAM-5.x and cgnsToFromFoam for Ubuntu 22.04 LTS. The utility cgnsToFoam works correctly, however foamToCGNS gives me the error "Element must be a fixed size" when I try to convert all cases in OF5.x tutorial folder. By the way, suggested case2 with cycle type of perio1 boundary is outdated, but changing "cycle" type to "patch" helps to blockMesh. Log of using foamToCGNS in standard simpleFoam case is presented below:

/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5.x                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 5.x-7f7d351b741b
Exec   : foamToCGNS
Date   : May 15 2023
Time   : 22:38:39
Host   : "ubuntu"
PID    : 119097
I/O    : uncollated
Case   : /home/nick/OpenFOAM/OpenFOAM-5.x/tutorials/incompressible/simpleFoam/airFoil2D
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Default value for rho: 1

Warning : log file not found. No convergence history will be included.
Time = 0
CGNS output file : "/home/nick/OpenFOAM/OpenFOAM-5.x/tutorials/incompressible/simpleFoam/airFoil2D/ConversionCGNS/0.cgns"
Processing the mesh: 21812 nodes, 10720 cells
Processing mesh connectivity: 10720 cells of type: "MIXED"
terminate called after throwing an instance of 'CGNSOO::cgns_exception'
  what():  CGNS error in Zone_t::writeElements while calling cg_section_write
Element must be a fixed size
Aborted (core dumped)

I have added -I/usr/include/hdf5/serial/ to EXE_INC in 2 options files in applications for including necessary headers of hdf5 and copied libhdf5_cpp.so from /usr/lib/x86_64-linux-gnu/hdf5/serial and libcgns.so from /usr/lib/x86_64-linux-gnu to /home/nick/OpenFOAM/cgnsToFromFoam/src/libcgnsoo_3.0/platforms/linux64GccDPInt32Opt/lib folder.
Maybe the utility was compilled with problems (i didn't get any errors) or 22.04 is very new for it? I tried docker with Ubuntu 14.04, but i couldn't compile it due to troubles with Makefiles there.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.