|
[Sponsors] |
Change the partial Slip condition - Coordinates problem |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Giannokostas Konstantinos
Join Date: Aug 2016
Posts: 6
Rep Power: 10 ![]() |
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(); 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. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |