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

keyword adjoint is undefined in dictionary

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

Like Tree1Likes
  • 1 Post By alexeym

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 19, 2014, 05:34
Default keyword adjoint is undefined in dictionary
  #1
Member
 
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12
imani is on a distinguished road
hi formers
who can help me about this error
my openFoam version is 2.1.1

--> FOAM FATAL IO ERROR:
keyword adjoint is undefined in dictionary "/home/dell/Desktop/TestRoom-A/0/p_rgh::boundaryField::blockMesh_blockmeshGruppe_bl ockmesh_Bottom"

thanks
imani is offline   Reply With Quote

Old   July 19, 2014, 07:06
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

it seems you're using fixedFluxPressure boundary condition. Look at the source code:

Code:
class fixedFluxPressureFvPatchScalarField
:
    public fixedGradientFvPatchScalarField
{
...
        //- Is the pressure adjoint, i.e. has the opposite sign
        Switch adjoint_;
...
so you just add 'adjoint no' to BC dictionary.
alexeym is offline   Reply With Quote

Old   July 19, 2014, 07:10
Default
  #3
Member
 
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12
imani is on a distinguished road
thanks
how should i change bc?
please explain more....



/*---------------------------------------------------------------------------*\
|========= | |
|\\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.2 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
// Exported by BIM HVACTool Version 0.9.6.5//

FoamFile
{
version 2.2;
format ascii;
class volScalarField;
location "0";
object p_rgh;
}

dimensions [0 2 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{
blockMesh_blockmeshGruppe_blockmesh_Left
{
type zeroGradient;
}

blockMesh_blockmeshGruppe_blockmesh_Right
{
type totalPressure;
gamma 0;
p0 uniform 0;
value uniform 0;
}

blockMesh_blockmeshGruppe_blockmesh_Top
{
type buoyantPressure;
rho rhok;
value uniform 0;
}

blockMesh_blockmeshGruppe_blockmesh_Bottom
{
type fixedFluxPressure;
value uniform 0;
}

blockMesh_blockmeshGruppe_blockmesh_Front
{
type totalPressure;
gamma 0;
p0 uniform 0;
value uniform 0;
}

blockMesh_blockmeshGruppe_blockmesh_Back
{
type totalPressure;
gamma 0;
p0 uniform 0;
value uniform 0;
}

body_Wall1_body
{
type fixedFluxPressure;
value uniform 0;
}

body_People_body_10
{
type fixedFluxPressure;
value uniform 0;
}

body_IW03_Body_1
{
type fixedFluxPressure;
value uniform 0;
}

body_IW02_Body_4
{
type fixedFluxPressure;
value uniform 0;
}

body_IW01_Body_3
{
type fixedFluxPressure;
value uniform 0;
}

body_IT01_Body_5
{
type fixedFluxPressure;
value uniform 0;
}

body_FB01_Body_8
{
type fixedFluxPressure;
value uniform 0;
}

body_DE01_Body_7
{
type fixedFluxPressure;
value uniform 0;
}

body_AW01_Body_2
{
type fixedFluxPressure;
value uniform 0;
}

body_AF01-Rahmen_Body_6
{
type fixedFluxPressure;
value uniform 0;
}

}
c?
imani is offline   Reply With Quote

Old   July 19, 2014, 07:34
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Change

Code:
.*
{ 
type fixedFluxPressure; 
value uniform 0; 
}
to

Code:
.*
{ 
type fixedFluxPressure; 
adjoint no;
}
elham usefi likes this.
alexeym is offline   Reply With Quote

Old   July 19, 2014, 08:21
Default p_rgh
  #5
Member
 
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12
imani is on a distinguished road
thanks
can you give me information about P-RGH boundary condition?
for example the difference between buoyantpressure and fixedfluxPressre?
imani is offline   Reply With Quote

Old   July 19, 2014, 09:25
Default
  #6
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Well, I can't. Go to $FOAM_SRC/finiteVolume/fields/fvPatchFields/derived and read the code of each BC you're interested in.
alexeym is offline   Reply With Quote

Old   October 16, 2014, 03:27
Default
  #7
Senior Member
 
zandi's Avatar
 
Fatema Zandi Goharrizi
Join Date: Mar 2009
Posts: 158
Rep Power: 17
zandi is on a distinguished road
Quote:
Originally Posted by imani View Post
thanks
can you give me information about P-RGH boundary condition?
for example the difference between buoyantpressure and fixedfluxPressre?
Hi
I have the same question. please help
zandi 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
Second Derivative Zero - Boundary Condition fu-ki-pa OpenFOAM 11 March 27, 2021 05:28
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 13:38
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51
G95 + CGNS Bruno Main CFD Forum 1 January 30, 2007 01:34


All times are GMT -4. The time now is 05:40.