CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

New volVectorField U1

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 10, 2012, 10:37
Default New volVectorField U1
  #1
New Member
 
Bastián Viscarra
Join Date: Sep 2011
Posts: 1
Rep Power: 0
arkanus01 is on a distinguished road
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!
arkanus01 is offline   Reply With Quote

Reply


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


All times are GMT -4. The time now is 15:25.