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

[swak4Foam] Groovy boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 4, 2015, 03:06
Default Groovy boundary condition
  #1
Senior Member
 
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13
harsha_kulkarni is on a distinguished road
Hello friends,

I am using groovyBC for linear temp. profile after that which command should I run for implementing groovyBC.


Regards
Harshawardhan
harsha_kulkarni is offline   Reply With Quote

Old   April 4, 2015, 04:36
Default
  #2
Senior Member
 
T. Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 17
Tushar@cfd is on a distinguished road
Quote:
Originally Posted by harsha_kulkarni View Post
Hello friends,

I am using groovyBC for linear temp. profile after that which command should I run for implementing groovyBC.


Regards
Harshawardhan
Dear Harwardhan,

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!
Tushar@cfd is offline   Reply With Quote

Old   April 4, 2015, 06:32
Default
  #3
Senior Member
 
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13
harsha_kulkarni is on a distinguished road
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 06:34. Reason: addition
harsha_kulkarni is offline   Reply With Quote

Old   April 4, 2015, 06:36
Default
  #4
Senior Member
 
T. Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 17
Tushar@cfd is on a distinguished road
Quote:
Originally Posted by harsha_kulkarni View Post
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"
Dear Harshwardhan,

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!
Tushar@cfd is offline   Reply With Quote

Old   April 5, 2015, 00:30
Default
  #5
Senior Member
 
T. Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 17
Tushar@cfd is on a distinguished road
Quote:
Originally Posted by harsha_kulkarni View Post
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";
}
);
Dear Harwardhan,

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";
     }
     );
This will work

-
Best Luck!
Tushar@cfd is offline   Reply With Quote

Old   April 6, 2015, 07:46
Exclamation
  #6
Senior Member
 
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13
harsha_kulkarni is on a distinguished road
now I have got this error

inconsistent types: T is volScalarField while the expression evaluates to a volVectorField
harsha_kulkarni is offline   Reply With Quote

Old   April 6, 2015, 23:55
Default
  #7
Senior Member
 
T. Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 17
Tushar@cfd is on a distinguished road
Quote:
Originally Posted by harsha_kulkarni View Post
now I have got this error

inconsistent types: T is volScalarField while the expression evaluates to a volVectorField
Dear Harshawardhan,

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!
Tushar@cfd is offline   Reply With Quote

Old   May 11, 2015, 13:53
Default
  #8
New Member
 
Juan David Rodriguez P
Join Date: Jan 2015
Location: Milano
Posts: 20
Rep Power: 11
JuanRodriguez is on a distinguished road
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
Do you know what might be wrong?

Thank you.
JuanRodriguez 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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 07:30
Question about adaptive timestepping Guille1811 CFX 25 November 12, 2017 17:38
Radiation interface hinca CFX 15 January 26, 2014 17:11
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44


All times are GMT -4. The time now is 00:58.