CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

openFOAM producing number density field

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 29, 2017, 10:27
Default openFOAM producing number density field
  #1
New Member
 
c
Join Date: Nov 2017
Posts: 4
Rep Power: 9
c_underwood is on a distinguished road
I am want to produce a field file which is the number density for my mesh area.
I am simulating a gas jet nozzle using sonicFoam.
I don't think there is a premade function to do this, although I may be wrong as I am still very new to openFoam. I am assuming that the gas I have is an ideal gas, and therefore I can get the number density by

n = P / (k_b T)

Therefore I want to produce this as I go along. I was thinking of making a function in system/controlDict but I cannot find a way of entering this. Please could someone advise me on how to do this, or another way of getting the number density out.

Thanks
c_underwood is offline   Reply With Quote

Reply

Tags
fields, functions, number density, openfaom


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[General] Extracting ParaView Data into Python Arrays Jeffzda ParaView 30 November 6, 2023 22:00
[Other] Can't Shake Erros: patch type 'patch' not constraint type 'empty' BrendaEM OpenFOAM Meshing & Mesh Conversion 12 April 3, 2022 19:32
Compressor Simulation using rhoPimpleDyMFoam Jetfire OpenFOAM Running, Solving & CFD 107 December 9, 2014 14:38
foam-extend_3.1 decompose and pyfoam warning shipman OpenFOAM 3 July 24, 2014 09:14


All times are GMT -4. The time now is 13:03.