|
[Sponsors] |
create a new field inside a tmp<class> member function |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 29, 2015, 05:39 |
create a new field inside a tmp<class> member function
|
#1 |
Member
Join Date: Apr 2015
Location: EU
Posts: 38
Rep Power: 10 |
Hello,
I want to create a new field inside tmp<volVectorField> class::func() assign it to existing vector field, do some operations on it end return the result. So far, I was unable to do this, or figure out how to do it. I can create a new field, and assign a value. And after that I can only return it, and not access it again. example: tmp<class> func() const { return ( new class("Name", a + b) ); } Where I would like to do some other operations on Name before I return it. Is that a silly thing to do? Thanks for reading
__________________
beep-beep |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
channelFoam for a 3D pipe | AlmostSurelyRob | OpenFOAM | 3 | June 24, 2011 14:06 |
Help creating a field function to create a sine pressure wave | Pleb | STAR-CCM+ | 2 | February 17, 2011 13:16 |
Compilation errors in ThirdPartymallochoard | feng_w | OpenFOAM Installation | 1 | January 25, 2009 07:59 |
Can anybody help me to solve the list errors while compiling Openfoam 15 on Opensuse 103 32bit | coompressor | OpenFOAM Installation | 0 | November 12, 2008 20:53 |
[OpenFOAM] Could you please help me | liugx212 | ParaView | 4 | December 22, 2005 17:55 |