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

Add an equation to CompressibleInterFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AntonioMezzacapo

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   December 28, 2021, 03:43
Question Add an equation to CompressibleInterFoam
  #1
New Member
 
Antonio
Join Date: Dec 2021
Posts: 5
Rep Power: 4
AntonioMezzacapo is on a distinguished road
I am trying to implement "waveTrasmessive.BC" in compressibleInterFoam. I added this code to createFilds.h

Code:
volScalarField DrhoDp
(
IOobject
(
"DrhoDp",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
alpha1*psi1 + alpha2*psi2
);
and in alphaEqns.h I added this:

Code:
DrhoDp = psi1*alpha1 + psi2*alpha2;
but after typing "wmake" I'm getting this error:

Does anyone know by which this error depend on? How can I fix it? Thanks!
Attached Images
File Type: jpg error.jpg (179.7 KB, 24 views)
AntonioMezzacapo is offline   Reply With Quote

 

Tags
vof wavetrasmessive fluid


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
Add soure terms to the momentum equation Shibi OpenFOAM Programming & Development 1 June 23, 2022 15:27
How to manually add Boussinesq Approximation to the momentum equation of a solver? chymalaia OpenFOAM Programming & Development 2 February 5, 2021 09:07
How can I add or modify an equation?? Jung hoo OpenFOAM Programming & Development 4 July 10, 2016 08:23
add temperature equation to interFoam nygbook OpenFOAM Running, Solving & CFD 3 September 4, 2011 07:28
UDF to add two governing equation?? T.K. Yang FLUENT 0 May 9, 2006 02:54


All times are GMT -4. The time now is 18:23.