Skip to content

This repository is for the final project of NERS 570 course at University of Michigan

License

Notifications You must be signed in to change notification settings

SoumiKDaS1701/ncdfToFoam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This package provides data processing and conversion between NetCDF and OpenFOAM data types. It uses a WMake based build system to align with the OpenFOAM build framework. It requires that the NetCDF library be installed to the lib/ directory. Additionally, a local copy of OpenFOAM should be installed with sufficient permissions for the user to be able to write a new executable to the ${FOAM_APPBIN} directory. Before building our executable, the user will need to source the OpenFOAM bashrc to set the relevant $FOAM_ environment variables. Only one additional configuration step is required for our utility, which is to export an environment variable ${ncdfToFoamRoot} to the top level directory of this repo as:

$ export ncdfToFoamRoot=/path/to/git/clone

The ncdfToFoam utility can be compiled from the top level directory of this repo by executing:

$ wmake src

The compilation can be verified by entering the test directory and executing:

$ ctest

Final executable should be called as:

$ ncdfToFoam mesh000.nc

where the present working directory contains:

|-- mesh000.nc
   
|-- mesh001.nc 
   
|-- result

    |-- mesh000sol.nc
   
    |-- mesh001sol.nc

|-- constant

|-- system
    
    |-- controlDict

    |-- fvSolution

The program will generate polyMesh in constant

|-- constant
    
    |-- polyMesh

        |-- points

        |-- faces

        |-- boundary

        |-- owner

        |-- neighbour 

About

This repository is for the final project of NERS 570 course at University of Michigan

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages