|
[Sponsors] |
April 10, 2012, 10:37 |
New volVectorField U1
|
#1 |
New Member
Bastián Viscarra
Join Date: Sep 2011
Posts: 1
Rep Power: 0 |
Hi everyone!
My problem: I want to change in the solver pisoFoam, the original equation, for this one: fvVectorMatrix UEqn ( fvm::ddt(U) + fvm::div(phi, U1) + turbulence->divDevReff(U) ); where U1=2.0*U; and there is my problem, how I define U1? U1 is a UList type, but when I declared it, the numbers are not corresponse. I'll try to change the file createFields.H like this: volVectorField U1 ( IOobject ( "U1", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); U1=2.0*U; and I add the file U1 in the 0 directory! (U1 copy of U) but, in the screen, qhen I run it, says U1 is a internald field uniform. but U is a internald field nonuniform!!! any suggest¿¿ pliss!! Sorry for my bad english, I hope you understand! Bastián! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
simpleSRFfoam : request for volVectorField U | jmf | OpenFOAM Running, Solving & CFD | 5 | July 24, 2019 09:35 |
Accessing a vector in a volVectorField by cell label | andrewryan | OpenFOAM Programming & Development | 7 | June 8, 2018 04:48 |
Change wallDist to return volVectorField | segersson | OpenFOAM Pre-Processing | 1 | October 8, 2009 06:14 |
Initialize a uniform 0 volVectorField | Schag | OpenFOAM | 3 | August 26, 2009 10:08 |
volVectorField to pointField | nikwin | OpenFOAM | 2 | June 26, 2009 07:54 |