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

How to call inhomogeneousMixture.func() in XiFoam solver?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 25, 2012, 08:02
Question How to call inhomogeneousMixture.func() in XiFoam solver?
  #1
New Member
 
Chen Huang
Join Date: Jul 2009
Location: Gothenburg, Sweden
Posts: 14
Rep Power: 17
chenhu is on a distinguished road
Hello everyone!

I am currently working on the turbulent combustion (premixed and stratified) modelling, and I have some difficulties in openFOAM language programming.

I created a member function e.g. internalPhi() (which calculates the local equivalence ratio field) in the inhomogeneousMixture class. I need to visualize the Phi field in my solver (which is based on XiFoam or engineFoam), but I could not figure out how to call the inhomogeneousMixture class in XiFoam.

There are some hints in calling the member functions for turbulence model, e.g. in the createField.H

autoPtr<compressible::turbulenceModel> turbulence
(
compressible::turbulenceModel::New
(
rho,
U,
phi,
thermo
)
);

Then we can use "turbulence->k()" in the solver.

Another example is in createField.H
autoPtr<hhuCombustionThermo> pThermo
(
hhuCombustionThermo::New(mesh)
);

hhuCombustionThermo& thermo = pThermo();
Then we can use "thermo.rho()" in the solver.

But I couldn't find any example of creating a MixtureType (inhomogeneousMixture). Does anyone have idea about how to call inhomogeneousMixture.func() in XiFoam solver? Thanks!

Chen
chenhu is offline   Reply With Quote

Old   March 19, 2015, 06:02
Default
  #2
Member
 
Howar
Join Date: Mar 2015
Posts: 53
Rep Power: 11
Howard is on a distinguished road
Quote:
Originally Posted by chenhu View Post
Hello everyone!

I am currently working on the turbulent combustion (premixed and stratified) modelling, and I have some difficulties in openFOAM language programming.

I created a member function e.g. internalPhi() (which calculates the local equivalence ratio field) in the inhomogeneousMixture class. I need to visualize the Phi field in my solver (which is based on XiFoam or engineFoam), but I could not figure out how to call the inhomogeneousMixture class in XiFoam.

There are some hints in calling the member functions for turbulence model, e.g. in the createField.H

autoPtr<compressible::turbulenceModel> turbulence
(
compressible::turbulenceModel::New
(
rho,
U,
phi,
thermo
)
);

Then we can use "turbulence->k()" in the solver.

Another example is in createField.H
autoPtr<hhuCombustionThermo> pThermo
(
hhuCombustionThermo::New(mesh)
);

hhuCombustionThermo& thermo = pThermo();
Then we can use "thermo.rho()" in the solver.

But I couldn't find any example of creating a MixtureType (inhomogeneousMixture). Does anyone have idea about how to call inhomogeneousMixture.func() in XiFoam solver? Thanks!

Chen
Hello, have you succeed in this? If so, could you tell me how to use this. Also , I would like to ask that on what situation you use 'inhomogeneousMixture'?
Howard is offline   Reply With Quote

Reply


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
A New Solver for Supersonic Combustion nakul OpenFOAM Announcements from Other Sources 19 February 27, 2024 10:44
Quarter Burner mesh with periosic condition SamCanuck FLUENT 2 August 31, 2011 12:34
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 15:08
2D CFD code using SIMPLE algorithm bfan Main CFD Forum 3 June 22, 2002 23:01


All times are GMT -4. The time now is 01:46.