|
[Sponsors] |
Assign one vector to another - still a field? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 26, 2011, 11:01 |
Assign one vector to another - still a field?
|
#1 |
Member
David GISEN
Join Date: Jul 2009
Location: Germany
Posts: 68
Rep Power: 16 |
Hi Foamers,
I have some problems with a vector assignment. To do some further computations, I need the unit normal vector of a patch stored as a vector. My command for this is Code:
vector unitNormalVector; ... forAll(wallshearstress4Rho.boundaryField(), patchi) { unitNormalVector(-mesh.Sf().boundaryField()[patchi]/mesh.magSf().boundaryField()[patchi]); ... } Code:
error: no match for call to ‘(Foam::vector) (Foam::tmp<Foam::Field<Foam::Vector<double> > >)’ I'm a beginner with C++, so I ask someone more experienced to tell me what I'm doing wrong. Regards, David |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Phase Field modeling in OpenFOAM | adona058 | OpenFOAM Running, Solving & CFD | 35 | November 16, 2021 00:16 |
problems after decomposing for running | alessio.nz | OpenFOAM | 7 | March 5, 2021 04:49 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 06:20 |
Zero size field | taranov | OpenFOAM Bugs | 2 | April 20, 2010 04:51 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 06:51 |