CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Pre-Processing

scalarField inlet profile BC

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

LinkBack Thread Tools Display Modes
Old   January 16, 2010, 12:09
Default scalarField inlet profile BC
New Member
Jan Potac
Join Date: Aug 2009
Posts: 22
Rep Power: 10
potac is on a distinguished road
Sponsored Links
Hi, I am trying to change parabolic velocity inlet BC downloaded from svn OF1.5-dev and obtain some scalar field (alpha,volume fraction) inlet profile instead. First, I thought that simple change in member function from vectorField::operator=vectorfunction(coord) to scalarField::operator= scalarfunction(coord) should be OK. But when compiling for OF1.6.x twoPhaseEulerFoam I receive an error: cannot call member function ‘void Foam::Field<Type>::operator=(const Foam::Field<Type>&) [with Type = double]’ without object.
Can someone help me to obtain a scalarField inlet profile BC, please? Maybe it is not the best way how to create such a BC.
The source BC files I use are attached. Thanks a lot!
Regards, Jan
Attached Files
File Type: c concentrationFvPatchVectorField.C (5.5 KB, 6 views)
File Type: h concentrationFvPatchVectorField.H (5.2 KB, 1 views)
potac is offline   Reply With Quote
Sponsored Links


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Inlet Profile with CFX-Pre Fadi Ishak CFX 1 June 10, 2008 07:12
problem with velocity inlet profile file Duncan FLUENT 3 November 21, 2005 08:28
Create hemisphere like velocity profile at inlet Nelson Main CFD Forum 3 July 27, 2005 12:05
create logarithmic wind profile for inlet Murat Main CFD Forum 0 December 30, 2003 01:45

Sponsored Links

All times are GMT -4. The time now is 02:30.