CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

rhoPimpleDyMFoam - codedFixedValue problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 14, 2017, 02:40
Default rhoPimpleDyMFoam - codedFixedValue problem
  #1
Member
 
Join Date: Nov 2014
Posts: 36
Rep Power: 11
Tscar is on a distinguished road
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
Tscar is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 09:18.