|
[Sponsors] |
April 4, 2015, 04:06 |
Groovy boundary condition
|
#1 |
Senior Member
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13 |
Hello friends,
I am using groovyBC for linear temp. profile after that which command should I run for implementing groovyBC. Regards Harshawardhan |
|
April 4, 2015, 05:36 |
|
#2 | |
Senior Member
|
Quote:
From your post it is understood that you have implemented groovyBC in your case and you are facing difficulty to run the same. Please edit these libraries in the system folder of your case directory (path: $OF_case/system/). Add these lines in "controlDict" file (on the top or bottom of the file): Code:
libs ( "libOpenFOAM.so" "libsimpleSwakFunctionObjects.so" "libswakFunctionObjects.so" "libgroovyBC.so" ); - Best Luck! |
||
April 4, 2015, 07:32 |
|
#3 |
Senior Member
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13 |
Yes it's working now getting this error
--> FOAM FATAL ERROR: No terminating ';' found in expression '"z=vector(0,0.01,0.1)"' of dictionary ".temperature" here I'm attaching funkySetFieldDict FoamFile { version 2.0; format ascii; root "/.automount/werner/Werner/bgschaid/bgschaid-foamStuff/DepositionTests"; case "neutralTest"; instance "system"; local ""; class dictionary; object funkySetFieldsDict; } expressions ( temperature { field T; target value; patchName movingWall; variables "z=vector(0,0.01,0.1)"; expression "0.01*z"; } ); Last edited by harsha_kulkarni; April 4, 2015 at 07:34. Reason: addition |
|
April 4, 2015, 07:36 |
|
#4 | |
Senior Member
|
Quote:
This issue is related to the expression used for the temperature boundary condition placed inside the "0" folder. Can you post your expression here: - Best Regards! |
||
April 5, 2015, 01:30 |
|
#5 | |
Senior Member
|
Quote:
You miss ";" at the end of your variable expression. Write like this: Code:
expressions ( temperature { field T; target value; patchName movingWall; variables "z=vector(0,0.01,0.1);"; expression "0.01*z"; } ); - Best Luck! |
||
April 6, 2015, 08:46 |
|
#6 |
Senior Member
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13 |
now I have got this error
inconsistent types: T is volScalarField while the expression evaluates to a volVectorField |
|
April 7, 2015, 00:55 |
|
#7 | |
Senior Member
|
Quote:
You have Temperature field which is scalar and the expression applied as boundary condition (in groovybc) is of vector form. Can you please elaborate your problem case in detail with actual mathematical expression that you want to apply? - Best Regards! |
||
May 11, 2015, 14:53 |
|
#8 |
New Member
Juan David Rodriguez P
Join Date: Jan 2015
Location: Milano
Posts: 20
Rep Power: 11 |
Dear Mr. Tushar
My case is about heat conduction through a solid and I am trying to calculate the gradient of Temperature in order to plot the heat flux lines in paraview. I think using funkySetsFields -field T -region solid -expression "grad(T)" -latestTime will help me but I get this error: Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // swakVersion: 0.3.1 (Release date: 2014-07-11) // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh solid for time = 5000 Time = 5000 Using command-line options Modifying field T of type volScalarField Putting "grad(T)" into field T at t = "5000" if condition "true" is true swak4Foam: Allocating new repository for sampledMeshes swak4Foam: Allocating new repository for sampledGlobalVariables --> FOAM FATAL ERROR: inconsistent types: T is volScalarField while the expression evaluates to a volVectorField From function doAnExpression() in file funkySetFields.C at line 361. FOAM exiting Thank you. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
sliding mesh problem in CFX | Saima | CFX | 46 | September 11, 2021 08:38 |
Radiation in semi-transparent media with surface-to-surface model? | mpeppels | CFX | 11 | August 22, 2019 08:30 |
Question about adaptive timestepping | Guille1811 | CFX | 25 | November 12, 2017 18:38 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
An error has occurred in cfx5solve: | volo87 | CFX | 5 | June 14, 2013 18:44 |