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

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 6 of 6
Search took 0.00 seconds.
Search: Posts Made By: marupio
Forum: OpenFOAM Programming & Development October 8, 2011, 11:25
Replies: 24
Views: 20,053
Posted By marupio
You could use this constructor: ...

You could use this constructor:


vectorField nameOfVectorField(sizeOfVectorField);

// or

vectorField nameOfVectorField(sizeOfVectorField, initialValueForAllCells);
Forum: OpenFOAM Programming & Development October 6, 2011, 18:23
Replies: 24
Views: 20,053
Posted By marupio
I don't think you even need to use the .oldTime...

I don't think you even need to use the .oldTime because the previous values will still be in the vectorField at the start of the next timestep. I suggest using a vectorField if you are not doing any...
Forum: OpenFOAM Programming & Development October 5, 2011, 10:57
Replies: 24
Views: 20,053
Posted By marupio
Yes, oldTime works much simpler than you think. ...

Yes, oldTime works much simpler than you think. It is all totally automatic in the background. You never need to call storeOldTime()... and the xn.oldTime() immediately gives you the value from the...
Forum: OpenFOAM Programming & Development October 4, 2011, 08:12
Replies: 24
Views: 20,053
Posted By marupio
> Had no success. What was the error? Was it a...

> Had no success.
What was the error? Was it a compile error, or did it not hold the data. This is a simple vector field copy we're doing - it shouldn't be too hard.

The constructors for...
Forum: OpenFOAM Programming & Development September 30, 2011, 10:29
Replies: 24
Views: 20,053
Posted By marupio
Oh, it's a vectorField, not a volVectorField? ...

Oh, it's a vectorField, not a volVectorField? Yeah, vectorFields are just vectorLists with math. There's no fancy oldTime archiving. In that case, just create a vectorField like a temp variable.
...
Forum: OpenFOAM Programming & Development September 30, 2011, 09:36
Replies: 24
Views: 20,053
Posted By marupio
Use U.oldTime(). You don't need to tell it to...

Use U.oldTime(). You don't need to tell it to store the old time... it figures that out on its own based on how many .oldTime() requests the GeometricField gets in a timestep. You can ask it how...
Showing results 1 to 6 of 6

 
Forum Jump

All times are GMT -4. The time now is 13:56.