|
[Sponsors] |
May 31, 2012, 04:42 |
cast vector to Type
|
#1 |
New Member
Jordi Muela
Join Date: Mar 2011
Posts: 27
Rep Power: 16 |
Hi all,
I'm modifying a boundary condition and I need to know how to cast a vector to Type, which is the type that I need to assign... I'm going to try explain it better: the original boundary condition has: Code:
this->operator==(timeSeries_(this->db().time().timeOutputValue())); Code:
template<class Type> Type Foam::timeVaryingSocketValuePointPatchField<Type>::recvSocketPos() { ..... } Code:
this->operator==(recvSocketPos()); Code:
vector pos(x, y, z); Code:
return(pos); Code:
Type vectorType; return(vectorType); Code:
Type *pType; pType = new(vector); So please!! What's the way in OpenFOAM?? What are the relation between Type and vector classes?? Aren't parent and child respectively? Lot of thanks in advance!! |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
singularity? | mihaipruna | OpenFOAM Running, Solving & CFD | 5 | April 24, 2012 18:18 |
Pressure instability with rhoSimpleFoam | daniel_mills | OpenFOAM Running, Solving & CFD | 44 | February 17, 2011 18:08 |
latest OpenFOAM-1.6.x from git failed to compile | phsieh2005 | OpenFOAM Bugs | 25 | February 9, 2010 05:37 |
Compilation errors in ThirdPartymallochoard | feng_w | OpenFOAM Installation | 1 | January 25, 2009 07:59 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |