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

Accesing tensor components with GroovyBC

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 3, 2020, 08:15
Default Accesing tensor components with GroovyBC
  #1
Member
 
Eren
Join Date: Aug 2018
Posts: 92
Rep Power: 9
ErenC is on a distinguished road
Hello fellas,


First of all, I did my research but I still get errors. I want to implement a spesific boundary condition for an academic study, therefore I can't share all details right now but

Code:
    leftWall     
    {
        type            groovyBC;
        variables        "udot=snGrad(U);" "Kit=0.01173;" "pg=snGrad(p);" "nu=1e-5;"
    }
I used these statements to acces to the velocity gradient(tensor, udot) and pressure gradient(vector, pg).
When I try to access to the components of the tensor I used "udot.components(tensor::YX)" and "pg.component(0)" for vector components in "valueExpression" but they are not working. I might be doing something wrong. It would be great if you point my error.

Best Regards,
Eren.
ErenC is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] groovyBC for oscillatory flow liybzd OpenFOAM Community Contributions 5 November 12, 2018 07:53
[swak4Foam] reactingMultiPhaseEulerFoam problems with groovyBC zanilu70 OpenFOAM Community Contributions 4 December 13, 2016 06:46
[swak4Foam] Change in alpha and U with groovyBC in twoPhaseEulerFoam dani2702 OpenFOAM Community Contributions 0 November 17, 2016 03:30
[swak4Foam] groovyBC issue - k and epsilon sagnikmazumdar OpenFOAM Community Contributions 24 March 1, 2015 07:16
[swak4Foam] groovyBC and Eqn.setReference() benk OpenFOAM Community Contributions 3 June 2, 2011 08:49


All times are GMT -4. The time now is 09:16.