|
[Sponsors] |
|
March 7, 2022, 04:22 |
Help with new volVectorField
|
#1 |
Member
Nguyen Trong Hiep
Join Date: Aug 2018
Posts: 48
Rep Power: 8 |
I look in to steadyCompressibleFoam in foam-extend-4.1 and run the simple tutorial test like transonicbump.
The base code used U instead of field HbyA run well. When i create new volVectorField HbyA with same definition like below and replace U with HbyA, the code still run but divergence with wrong result. What is the trick here? Can anyone explain it? Code:
volVectorField HbyA = rUA*UEqn().H(); U = rUA*UEqn().H(); // Calculate phi for boundary conditions phi = rhof*(fvc::interpolate(HbyA) & mesh.Sf()); |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
request fo volVectorField U.particles from objectRegistry regin0 failed-TwoPhaseEuler | Hamed1117 | OpenFOAM Programming & Development | 5 | May 24, 2023 09:13 |
How to update volVectorField from files | newOpenfoamUser | OpenFOAM Programming & Development | 0 | September 20, 2021 07:44 |
Trouble accessing volVectorField while decomposing | petros | OpenFOAM Programming & Development | 6 | July 31, 2021 07:43 |
making a volVectorField | sina_mech | OpenFOAM Programming & Development | 7 | July 7, 2016 15:49 |
Multiplication of two volVectorField | ChGr | OpenFOAM Programming & Development | 1 | May 30, 2016 12:08 |