|
[Sponsors] |
February 14, 2017, 02:40 |
rhoPimpleDyMFoam - codedFixedValue problem
|
#1 |
Member
Join Date: Nov 2014
Posts: 36
Rep Power: 11 |
Hello,
I am trying to simulate membrane motion with rhoPimpleDyMFoam. I use following pointDisplacementz entry for the membrane: membrane { type codedFixedValue; redirectType pointDisplacementyMembrane; code #{ const vectorField& Cf = this->patch().Cf(); scalarField& v = *this; const scalar t = this->db().time().value(); const scalar ampl = 1e-4; const scalar D = 10e-3; const scalar f = 200; forAll(Cf,faceI) { scalar x = Cf[faceI].x(), y = Cf[faceI].y(), rSq = x*x + y*y; v = (ampl*cos(constant::mathematical::twoPi*((sqrt(rSq ))/(2*D)))*sin(constant::mathematical::twoPi*f*t)); } #}; value $internalField; } When I run the solver, I get following error: pointDisplacementz.boundaryField.membrane:38:39: error: 'const class Foam:ointPatch' has no member named 'Cf' make: *** [Make/linux64GccDPInt32Opt/fixedValuePointPatchFieldTemplate.o] Error 1 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] engineFoam new mesh problem | ayhan515 | OpenFOAM Meshing & Mesh Conversion | 5 | August 10, 2015 08:45 |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 04:43 |
Gambit - meshing over airfoil wrapping (?) problem | JFDC | FLUENT | 1 | July 11, 2011 05:59 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 06:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 19:13 |