CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   creating new velocity boundary condition (https://www.cfd-online.com/Forums/openfoam-programming-development/205095-creating-new-velocity-boundary-condition.html)

pod August 9, 2018 04:10

creating new velocity boundary condition
 
Hello everyone,
I'm trying to implement a new boundary condition for velocity field starting from pressureInletOutletParSlipVelocity. I'd like to give in input (from the tutorial) a volScalarField. So I just changed the name of rhoName (which is one of the two private data of the existing class) but it gets an error like "expected keyword 'uniform' or 'nonuniform' ". I'd like it to work like in temperatureCoupledBase, which, if you give a volScalarField in kappaName, it works fine.
Any suggestion?
Thanks to anyone is willing to answer

Tobi August 9, 2018 16:48

Hi, no code no check. Please give more information.

pod August 11, 2018 10:08

hello Tobi, thanks for your interest

I actually managed to get a volScalarField by utilizing the U b.c. of the solver rhoCentralFoam. So I'll benefit from your help another time, if you will concede it.

(btw your website is awesome, thanks for that)

cheers
pod


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