CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Change the partial Slip condition - Coordinates problem

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 29, 2016, 11:26
Default Change the partial Slip condition - Coordinates problem
  #1
New Member
 
Giannokostas Konstantinos
Join Date: Aug 2016
Posts: 6
Rep Power: 10
k.giannoko is on a distinguished road
Hi Everyone,

I want to change the partialSlip condition-class into mySlip condition. I have successfully compile the new condition without any change. The amount of slip is controlled now by the y-coordinate, not from valueFraction value. So the next step is to add the dependence of y-coordinate in slip parameter (i.e instead of '(1.0-valueFraction_)' ). Then replace with this command in order to take the y-coordinate:

Code:
(
      mesh.C().component(vector::Y)*transform(I - sqr(nHat), pif) - pif
  )*this->patch().deltaCoeffs();
and finally after compilation I get the error:

mySlipFvPatchField.C: In member function ‘Foam::tmp<Foam::Field<Type> > Foam::mySlipFvPatchField<Type>::snGradTransformDia g() const [with Type = Foam::Vector<double>]’:
mySlipFvPatchField.C:177:1: warning: control reaches end of non-void function [-Wreturn-type]


Can somebody help me out please?
Thanks in advance!

k.g.
k.giannoko is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Diameter varying slip condition on wall , 2d pipe flow k.giannoko OpenFOAM Pre-Processing 0 August 25, 2016 14:54
problem about pressure boundary condition at sharp corner yhaomin2007 OpenFOAM Running, Solving & CFD 1 January 19, 2016 09:24
Pressure Boundary Condition Problem rbjet CFX 3 July 15, 2013 21:45
Slip boundary condition what is inside normunds OpenFOAM Running, Solving & CFD 2 June 4, 2007 06:45
a problem with Boundary condition M Rad Main CFD Forum 12 November 27, 1998 12:49


All times are GMT -4. The time now is 13:20.