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

Help with new volVectorField

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 7, 2022, 04:22
Default Help with new volVectorField
  #1
Member
 
Nguyen Trong Hiep
Join Date: Aug 2018
Posts: 48
Rep Power: 8
hiep.nguyentrong is on a distinguished road
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());
hiep.nguyentrong is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
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


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