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

Problem with boundaryField and a scalar

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2019, 12:33
Default Problem with boundaryField and a scalar
  #1
New Member
 
Filipe Dias
Join Date: Jul 2019
Posts: 6
Rep Power: 7
FilipeDias93 is on a distinguished road
Hello everyone!
I have recently noticed that my cases suddenly lost processor independency, i.e., the processor separations now affect the results. After some digging, I tracked it to an operation I have when updating the energy equation boundaryField. In it I have:

rhoE.boundaryField=(...)+rhoYh0.boundaryField();

In which rhoY0=rhoY1*h01+rhoy2*h02...

Where h01 is the formation enthalpy for species 1.

I tried to change the boundary update into:
rhoE.boundaryField=(...)+rhoY1.boundaryField()*h01 +rhoy2.boundaryField()*h02...

But when I compile, I receive an error stating that the operator * is not available between a geometricField and a dimensionedScalar. This only happens for the boundaryField, when updating the internalField this error does not appear.

I want to ask if there is a way that I can perform this operation.
Thank you kindly for your help
FilipeDias93 is offline   Reply With Quote

Old   July 31, 2019, 03:59
Default
  #2
Member
 
Hosein
Join Date: Nov 2011
Location: Germany
Posts: 93
Rep Power: 14
einstein_zee is on a distinguished road
hey,

have you tried to multiply it with ds.value()? [ds = dimensionedScalar]
einstein_zee is offline   Reply With Quote

Old   July 31, 2019, 06:41
Default
  #3
New Member
 
Filipe Dias
Join Date: Jul 2019
Posts: 6
Rep Power: 7
FilipeDias93 is on a distinguished road
Good morning
That did work, thank you so very much!!

By the way, has anyone ever had problem with parallel independence due to boundary condition and internalField update?

Thank you very much for your help
FilipeDias93 is offline   Reply With Quote

Reply

Tags
boundaryfield, openfoam 2.1.1


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
Temperature calculation from total enthalpy in OpenFOAM (XiFOAM) sharifi OpenFOAM Running, Solving & CFD 1 October 8, 2020 09:16
Problem about Rotor simulation whit high rotating speed Thomas pan OpenFOAM Running, Solving & CFD 4 June 20, 2018 06:24
error in fireFoam, when running the case wallFireSpread2D zhoubiao1088 OpenFOAM Running, Solving & CFD 9 February 1, 2018 18:45
problem with total enthalpy solved by rhoporousmrfsimplefoam mump0 OpenFOAM Running, Solving & CFD 3 January 28, 2013 02:06
Problem with rhoSimpleFoam : exploding enthalpy and density at the walls david39 OpenFOAM Running, Solving & CFD 6 January 18, 2011 11:49


All times are GMT -4. The time now is 20:35.