Giter VIP home page Giter VIP logo

pdffoam's Introduction

Transported JPDF Library and Solver for Reactive Flow Simulation

pdfFoam is a general purpose JPDF algorithm for the simulation of turbulent reactive flows in OpenFOAM. The algorithms, its implementation and the validation test cases are described in detail in the authors PhD thesis [Wild2013].

Installation

Documentation

Some documentation is directly available as Markdown: doc/README.md. The code, however, is documented extensively with Doxygen. Refer to below instructions for details on how to build it.

Requirements

In the following the prerequisite software packages are listed:

  • OpenFOAM: Versions 1.7.x or 2.1.x have been tested. OpenFOAM-extend has not been tried at all. Installation instructions are available from the official OpenFOAM download page.
  • A operating system that is compatible with OpenFOAM. These include popular Linux distributions, such as Ubuntu, OpenSUSE and Fedora. Mac OS X works with a lot of hackery. Simply forget about MS Windows. Refer to the OpenFOAM installation instructions on version requirements. The requirements can usually be relaxed when compiling OpenFOAM from source, but that is not for the inexperienced.
  • A C++ compiler that is compatible with OpenFOAM. For OpenFOAM 1.7.x these are g++ versions 4.2 to 4.6. For OpenFOAM 2.1.x this should be g++ 4.3 through 4.7 and fairly recent versions of Clang.
  • GNU Make

On Debian based distributions, the following commands will install OpenFOAM 1.7.1 (the version best tested) and all other dependencies:

sudo sh -c "echo deb http://www.openfoam.com/download/ubuntu maverick main > /etc/apt/sources.list.d/openfoam171.list"
sudo apt-get update
sudo apt-get install openfoam171 paraviewopenfoam381

In case you are using Ubuntu 10.04 LTS, replace maverick with lucid in above commands.

If you want to genereate the Doxygen documentation, you also will need:

  • Doxygen
  • GNU Sed
  • GNU Awk
  • Graphviz
  • LaTeX: Depending on the version of Doxygen, you need a LaTeX distribution with dvipng installed. This is only necessary if your Doxygen doesn't support MathJax and loading of MathJax-extensions for formula rendering. Doxygen version 1.7.5 and newer should do.

On Debian based distributions, the following will install these packages (excluding LaTeX):

sudo apt-get install doxygen sed gawk graphviz

The tutorial cases use Python Matplotlib to create the graphs. Version 1.2.0 or newer is required. Unfortunately, e.g. the current Ubuntu 12.10 only provides version 1.1.1. To install a newer version without affecting the one installed by the system, virtualenv can be used to create an isolated Python installation where the package can be updated:

sudo apt-get install python-virtualenv
virtualenv --system-site-packages $HOME/Software/python
source $HOME/Software/python/bin/activate
echo "source $HOME/Software/python/bin/activate" >> ~/.bash_profile
pip install --upgrade matplotlib

Building

In order to compile the library mcParticle and the pdfSimpleFoam solver, in the top-level source directory issue the following command:

./Allwmake

To build the documentation, use instead

./Allwmake doc

Acknowledgements

The math renderings in the Markdown files are generously provided by CodeCogs:

CodeCogs - An Open Source Scientific Library

pdffoam's People

Contributors

wildmichael avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

pdffoam's Issues

0.org in the tut is missing

Hi,
I am interested in you code. And I installed it, run it, but found there is no 0.org in sandiaD. Neither do other cases.
Could you please upload them?

Error related to tutorial of SandiaD case in pdfFoam

I had successfully installed the pdfFoam in OpenFOAM-2.1.x. I tried to run the default SandiaD case given in the tutorial of pdfFoam. The simulation is not running because some files are missed (SandiaD/constant/boundaryData/jet/points). I have attached the screenshots of the error shown while simulating the SadiaD case.

Please have a look. I am positively looking for your valuable inputs.

Error.pdf

Problem in tutorial of SandiaPropaneJet case in pdfFoam

I installed the pdfFoam in OpenFOAM-2.1.1. I tried to run the SandiaPropaneJet case in pdfFoam, but it accidentally went wrong. It seems that some files are missing(/pdfFoam-master/tutorials/SandiaPropaneJet/constant/boundaryData/jet/points). Actually, I have already run blockmesh correctly. Here is the log files. In fact, it also occurs in other places (such as the SandiaD case). I really hope you can help me. I want to use pdfFoam to do some interesting work.

log.blockMesh

/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.1.1-221db2718bbb
Exec   : blockMesh
Date   : Jan 17 2024
Time   : 14:34:41
Host   : "y2202.para.bscc"
PID    : 55077
Case   : /public21/home/sc92731/baixinyuan/tpdf/2.1/pdfFoam-master/tutorials/SandiaPropaneJet
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

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

Creating block mesh from
    "/public21/home/sc92731/baixinyuan/tpdf/2.1/pdfFoam-master/tutorials/SandiaPropaneJet/constant/polyMesh/blockMeshDict"
No non-linear edges defined
Creating topology blocks
Creating topology patches

Reading patches section

Creating block mesh topology

Reading physicalType from existing boundary file

Default patch type set to empty

Check topology

	Basic statistics
		Number of internal faces : 2
		Number of boundary faces : 14
		Number of defined boundary faces : 14
		Number of undefined boundary faces : 0
	Checking patch -> block consistency

Creating block offsets
Creating merge list .

Creating polyMesh from blockMesh
Creating patches
Creating cells
Creating points with scale 1

There are no merge patch pairs edges

Writing polyMesh
----------------
Mesh Information
----------------
  boundingBox: (0 0.000149429 -0.00174478) (0.3 0.0399619 0.00174478)
  nPoints: 4070
  nCells: 1944
  nFaces: 7866
  nInternalFaces: 3798
----------------
Patches
----------------
  patch 0 (start: 3798 size: 7) name: jet
  patch 1 (start: 3805 size: 5) name: bluffBody
  patch 2 (start: 3810 size: 24) name: coflow
  patch 3 (start: 3834 size: 36) name: outflow
  patch 4 (start: 3870 size: 54) name: axis
  patch 5 (start: 3924 size: 54) name: outerWall
  patch 6 (start: 3978 size: 1944) name: back
  patch 7 (start: 5922 size: 1944) name: front

End

log.pdfSimpleFoam

/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.1.1-221db2718bbb
Exec   : pdfSimpleFoam
Date   : Jan 17 2024
Time   : 14:34:41
Host   : "y2202.para.bscc"
PID    : 55086
Case   : /public21/home/sc92731/baixinyuan/tpdf/2.1/pdfFoam-master/tutorials/SandiaPropaneJet
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

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

Create mesh for time = 0

Reading field U



--> FOAM FATAL IO ERROR: 
cannot find file

file: /public21/home/sc92731/baixinyuan/tpdf/2.1/pdfFoam-master/tutorials/SandiaPropaneJet/constant/boundaryData/jet/points at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting


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.