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

polynomial BC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 28, 2016, 00:35
Default polynomial BC
  #1
Member
 
Saurav Kumar
Join Date: Jul 2016
Posts: 80
Rep Power: 10
srv537 is on a distinguished road
for fully developed velocity profile, i have simulated channel flow and i want to use channel flow fully developed velocity profile at outlet as a inlet for my 2D backward facing step problem.

i can create a boundary condition for parabolic profile but i want to use polynomial boundary condition as it is more simple.

uniformValue polynomial // y = 0.1 + 1.3x^2 + 2.7x^3
(
(0.1 0)
(1.3 2.0)
(2.7 3.0)
);

is it for scalar or vector field? and i cant understand what is these values mean? (0.1 0) (1.3 2.0) (2.7 3.0)

for same problem with 3D if there is wall on both side then how can i use outlet surface fully developed velocity profile in channel flow as a inlet condition in backward facing step?
srv537 is offline   Reply With Quote

Old   December 2, 2016, 03:19
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
i suggest to install groovyBC to apply such boundary condition.
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   December 2, 2016, 09:19
Default
  #3
Member
 
Saurav Kumar
Join Date: Jul 2016
Posts: 80
Rep Power: 10
srv537 is on a distinguished road
Quote:
Originally Posted by nimasam View Post
i suggest to install groovyBC to apply such boundary condition.


i am using openfoam4, i tried to install groovy boundary condition/swak4Foam but when i iexecuted wmake all in terminal then i got some error as


srv@srv:~/OpenFOAM/srv-4.1/applications/src/swak4Foam$ wmake all
No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
Swak version is 0.2.4
Bison is version 3.0.4
Flex is version 2.6.0 (Minor version: 0)
OpenFOAM-version: Major 4 Minor 1 Patch 4.1
No swak4FoamParsers/foamVersion4swak.H. Generated
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file plugins/SampledSurfaceValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
Making dependency list for source file plugins/SampledSetValuePluginFunction.C
could not open file coordSet.H for source file plugins/SampledSetValuePluginFunction.C due to No such file or directory
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/SampledSetValuePluginFunction.C due to No such file or directory
Making dependency list for source file plugins/FaceZoneValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/FaceZoneValuePluginFunction.C due to No such file or directory
Making dependency list for source file plugins/FaceSetValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/FaceSetValuePluginFunction.C due to No such file or directory
Making dependency list for source file plugins/CellZoneValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/CellZoneValuePluginFunction.C due to No such file or directory
Making dependency list for source file plugins/CellSetValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/CellSetValuePluginFunction.C due to No such file or directory
Making dependency list for source file plugins/PatchValuePluginFunction.C
could not open file PatchValueExpressionParser.tab.hh for source file plugins/PatchValuePluginFunction.C due to No such file or directory
could not open file directMappedPatchBase.H for source file plugins/PatchValuePluginFunction.C due to No such file or directory
Making dependency list for source file plugins/FieldValuePluginFunction.C
could not open file FieldValueExpressionParser.tab.hh for source file plugins/FieldValuePluginFunction.C due to No such file or directory
could not open file directMappedFvPatch.H for source file plugins/FieldValuePluginFunction.C due to No such file or directory
could not open file directMappedPointPatch.H for source file plugins/FieldValuePluginFunction.C due to No such file or directory
could not open file FixedValuePointPatchField.H for source file plugins/FieldValuePluginFunction.C due to No such file or directory
could not open file ZeroGradientPointPatchField.H for source file plugins/FieldValuePluginFunction.C due to No such file or directory
could not open file CalculatedPointPatchField.H for source file plugins/FieldValuePluginFunction.C due to No such file or directory
Making dependency list for source file plugins/CommonPluginFunction.C
Making dependency list for source file SampledSetValueExpressionDriver.C
could not open file coordSet.H for source file SampledSetValueExpressionDriver.C due to No such file or directory
could not open file SubsetValueExpressionParser.tab.hh for source file SampledSetValueExpressionDriver.C due to No such file or directory
Making dependency list for source file SampledSurfaceValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file SampledSurfaceValueExpressionDriver.C due to No such file or directory
could not open file fvMeshSubset.H for source file SampledSurfaceValueExpressionDriver.C due to No such file or directory
Making dependency list for source file FaceZoneValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file FaceZoneValueExpressionDriver.C due to No such file or directory
Making dependency list for source file CellZoneValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file CellZoneValueExpressionDriver.C due to No such file or directory
Making dependency list for source file FaceSetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file FaceSetValueExpressionDriver.C due to No such file or directory
Making dependency list for source file CellSetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file CellSetValueExpressionDriver.C due to No such file or directory
Making dependency list for source file SetSubsetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file SetSubsetValueExpressionDriver.C due to No such file or directory
Making dependency list for source file SubsetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionDriver.C due to No such file or directory
Making dependency list for source file SubsetValueExpressionLexer.ll
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionLexer.ll due to No such file or directory
Making dependency list for source file PatchValueExpressionDriver.C
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file directMappedPatchBase.H for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file FieldValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file directMappedFvPatch.H for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file directMappedPointPatch.H for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file FixedValuePointPatchField.H for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file ZeroGradientPointPatchField.H for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file CalculatedPointPatchField.H for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file SubsetValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C due to No such file or directory
Making dependency list for source file PatchValueExpressionLexer.ll
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionLexer.ll due to No such file or directory
could not open file directMappedPatchBase.H for source file PatchValueExpressionLexer.ll due to No such file or directory
Making dependency list for source file FieldValueExpressionDriver.C
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionDriver.C due to No such file or directory
could not open file directMappedFvPatch.H for source file FieldValueExpressionDriver.C due to No such file or directory
could not open file directMappedPointPatch.H for source file FieldValueExpressionDriver.C due to No such file or directory
could not open file FixedValuePointPatchField.H for source file FieldValueExpressionDriver.C due to No such file or directory
could not open file ZeroGradientPointPatchField.H for source file FieldValueExpressionDriver.C due to No such file or directory
could not open file CalculatedPointPatchField.H for source file FieldValueExpressionDriver.C due to No such file or directory
Making dependency list for source file FieldValueExpressionLexer.ll
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionLexer.ll due to No such file or directory
could not open file directMappedFvPatch.H for source file FieldValueExpressionLexer.ll due to No such file or directory
could not open file directMappedPointPatch.H for source file FieldValueExpressionLexer.ll due to No such file or directory
could not open file FixedValuePointPatchField.H for source file FieldValueExpressionLexer.ll due to No such file or directory
could not open file ZeroGradientPointPatchField.H for source file FieldValueExpressionLexer.ll due to No such file or directory
could not open file CalculatedPointPatchField.H for source file FieldValueExpressionLexer.ll due to No such file or directory
Making dependency list for source file CommonValueExpressionDriver.C
Making dependency list for source file SubsetValueExpressionParser.yy
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionParser.yy due to No such file or directory
Making dependency list for source file PatchValueExpressionParser.yy
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionParser.yy due to No such file or directory
could not open file directMappedPatchBase.H for source file PatchValueExpressionParser.yy due to No such file or directory
Making dependency list for source file FieldValueExpressionParser.yy
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionParser.yy due to No such file or directory
could not open file directMappedFvPatch.H for source file FieldValueExpressionParser.yy due to No such file or directory
could not open file directMappedPointPatch.H for source file FieldValueExpressionParser.yy due to No such file or directory
could not open file FixedValuePointPatchField.H for source file FieldValueExpressionParser.yy due to No such file or directory
could not open file ZeroGradientPointPatchField.H for source file FieldValueExpressionParser.yy due to No such file or directory
could not open file CalculatedPointPatchField.H for source file FieldValueExpressionParser.yy due to No such file or directory
Making dependency list for source file setsAndSurfaces/swakRegistryProxySet.C
could not open file coordSet.H for source file setsAndSurfaces/swakRegistryProxySet.C due to No such file or directory
Making dependency list for source file setsAndSurfaces/swakRegistryProxySurface.C
Making dependency list for source file ExpressionResult/StoredStackExpressionResult.C
Making dependency list for source file ExpressionResult/StackExpressionResult.C
Making dependency list for source file ExpressionResult/DelayedExpressionResult.C
Making dependency list for source file ExpressionResult/StoredExpressionResult.C
Making dependency list for source file ExpressionResult/ExpressionResult.C
Making dependency list for source file ExpressionDriverWriter.C
Making dependency list for source file namedEnums/NumericAccumulationNamedEnum.H
Making dependency list for source file namedEnums/LogicalAccumulationNamedEnum.H
Making dependency list for source file namedEnums/MeshInterpolationOrder.C
Making dependency list for source file repositories/GlobalVariablesRepository.C
Making dependency list for source file repositories/SetsRepository.C
could not open file coordSet.H for source file repositories/SetsRepository.C due to No such file or directory
could not open file writer.H for source file repositories/SetsRepository.C due to No such file or directory
Making dependency list for source file repositories/MeshesRepository.C
Making dependency list for source file repositories/SurfacesRepository.C
Making dependency list for source file helpers/printSwakVersion.C
g++ -std=c++0x -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPInt32Opt -I/opt/openfoam4/src/finiteVolume/lnInclude -I/opt/openfoam4/src/sampling/lnInclude -I/opt/openfoam4/src/triSurface/lnInclude -I/opt/openfoam4/src/surfMesh/lnInclude -I/opt/openfoam4/src/lagrangian/basic/lnInclude -I/opt/openfoam4/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam4/src/OpenFOAM/lnInclude -I/opt/openfoam4/src/OSspecific/POSIX/lnInclude -fPIC -c helpers/printSwakVersion.C -o Make/linux64GccDPInt32Opt/helpers/printSwakVersion.o
In file included from helpers/printSwakVersion.C:44:0:
lnInclude/swak.H:58:2: error: #error "This swak4Foam-version is only used for the 1.x-versions of OpenFOAM. For higher versions there is a special branch"
#error "This swak4Foam-version is only used for the 1.x-versions of OpenFOAM. F
^
/opt/openfoam4/wmake/rules/General/transform:8: recipe for target 'Make/linux64GccDPInt32Opt/helpers/printSwakVersion.o' failed
make: *** [Make/linux64GccDPInt32Opt/helpers/printSwakVersion.o] Error 1
Parser library did not compile OK. No sense continuing as everything else depends on it
Requirements for Library not satisfied. I see no sense in going on

how can i install it properly, could you please guide me for this.

Thank you for your reply.
srv537 is offline   Reply With Quote

Old   December 2, 2016, 09:49
Default csv file as a boundary condition
  #4
Member
 
Saurav Kumar
Join Date: Jul 2016
Posts: 80
Rep Power: 10
srv537 is on a distinguished road
i tried to use csv file as BC but i got some error

boundaryField
{
inlet
{
type uniformValue;
value uniform csvFile;
csvFileCoeffs
{
fileName "U_bc.csv" //file Name
outOfBounds clamp;
hasHeaderLine true;
refColumn 1; //velocity profile along y axis
componentColumns (0 1 2);
}
}

error is

file: /home/srv/OpenFOAM/srv-4.1/run/BFS_2D/Re400inletchennelprofile/0/U.boundaryField.inlet from line 25 to line 33.

From function static Foam::tmp<Foam::fvPatchField<Type> > Foam::fvPatchField<Type>::New(const Foam::fvPatch&, const Foam:imensionedField<Type, Foam::volMesh>&, const Foam::dictionary&) [with Type = Foam::Vector<double>]
in file /home/ubuntu/OpenFOAM/OpenFOAM-4.1/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 134.

FOAM exiting

thank you for your reply
srv537 is offline   Reply With Quote

Old   December 3, 2016, 10:07
Default
  #5
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
look this thread it will help you to figure it out.
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam 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
Specific heat polynomial for air(default by FLUENT) Panboy FLUENT 3 March 13, 2022 10:19
thermophysicalProperties with polynomial values Gerrit OpenFOAM Running, Solving & CFD 4 April 21, 2020 11:51
polynomial BC from 3d vector data map OpenFOAM Programming & Development 0 March 30, 2015 09:48
polynomial thermophysical properties jason.ryon OpenFOAM 2 May 11, 2011 07:16
Scalar polynomial for specific heat is not defined! navid STAR-CD 2 April 19, 2010 06:00


All times are GMT -4. The time now is 23:45.