|
[Sponsors] |
July 30, 2019, 13:33 |
Problem with boundaryField and a scalar
|
#1 |
New Member
Filipe Dias
Join Date: Jul 2019
Posts: 6
Rep Power: 7 |
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 |
|
July 31, 2019, 04:59 |
|
#2 |
Member
Hosein
Join Date: Nov 2011
Location: Germany
Posts: 94
Rep Power: 15 |
hey,
have you tried to multiply it with ds.value()? [ds = dimensionedScalar] |
|
July 31, 2019, 07:41 |
|
#3 |
New Member
Filipe Dias
Join Date: Jul 2019
Posts: 6
Rep Power: 7 |
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 |
|
Tags |
boundaryfield, openfoam 2.1.1 |
|
|
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 10:16 |
Problem about Rotor simulation whit high rotating speed | Thomas pan | OpenFOAM Running, Solving & CFD | 4 | June 20, 2018 07:24 |
error in fireFoam, when running the case wallFireSpread2D | zhoubiao1088 | OpenFOAM Running, Solving & CFD | 9 | February 1, 2018 19:45 |
problem with total enthalpy solved by rhoporousmrfsimplefoam | mump0 | OpenFOAM Running, Solving & CFD | 3 | January 28, 2013 03:06 |
Problem with rhoSimpleFoam : exploding enthalpy and density at the walls | david39 | OpenFOAM Running, Solving & CFD | 6 | January 18, 2011 12:49 |