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 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: hjasak
Forum: OpenFOAM August 25, 2010, 04:27
Replies: 4
Views: 1,891
Posted By hjasak
Better. If you play with pointers a bit, you can...

Better. If you play with pointers a bit, you can avoid copies.

fvScalarMatrix* Eqn0Ptr = new fvScalarMatrix( fvm::laplacian(D1,c1) );
Eqn0Ptr->setReference(location, value);
...
Forum: OpenFOAM August 24, 2010, 14:59
Replies: 4
Views: 1,891
Posted By hjasak
Yes, setReference will be in the fvMatrix. ...

Yes, setReference will be in the fvMatrix. First, make the fvMatrix, then set the reference and finally insert it in. If this is inconvenient, you can refCast the equations[0] into fvMatrix and it...
Showing results 1 to 2 of 2

 
Forum Jump

All times are GMT -4. The time now is 02:34.