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

Multiple Inlets Adjoint

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 20, 2018, 12:43
Exclamation Multiple Inlets Adjoint
  #1
Member
 
Massachusetts
Join Date: Jun 2015
Posts: 46
Rep Power: 11
kayla1994 is on a distinguished road
Hello everyone,
I'm trying to modify the shapeOptimizationFoam in order to account for multiple inlets. In the original createFields.H file there is a line of code that is used to set a zero alpha at the inlet

Code:
const labelList& inletCells = mesh.boundary()["inlet"].faceCells();
which i changed with

Code:
const labelList& inletCells1 = mesh.boundary()["inletLeft"].faceCells();
const labelList& inletCells2 = mesh.boundary()["inletRight"].faceCells();
and I also added

Code:
zeroCells(alpha, inletCells1);
zeroCells(alpha, inletCells2);
after the definition of alpha. Am i doing it right? The solver complied correctly without any problems.
I run the simulation and at the beginning I had this strange warning line and the simulation stopped at the first iteration of the adjoint problem.

Code:
Reading field pa

--> FOAM Warning : 
    From function const Foam::HashTable<Foam::List<int>, Foam::word>& Foam::polyBoundaryMesh::groupPatchIDs() const
    in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 455
    Removing patchGroup 'wall' which clashes with patch 6 of the same name.
This is strange because, before the simulation, I tested the mesh with simpleFoam to initialize the solution. Any idea of what is this problem?

Thank you for your help
kayla1994 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
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 07:09
Shape optimization doesn't converge - Adjoint log file JPBLourenco SU2 Shape Design 0 December 11, 2017 09:41
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 13:21
Multiple inlets problem Jeff Main CFD Forum 2 August 17, 2005 11:48
Multiple Inlets Charlie V FLUENT 0 May 28, 2001 03:29


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