# codedFixedValue b.c for multi-region cases

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

 May 31, 2016, 15:02 codedFixedValue b.c for multi-region cases #1 New Member   dklogo Join Date: May 2015 Posts: 10 Rep Power: 4 Hi all, I need to built a new b.c (for the electric potential-phi) in order to couple a multi-region case. More specific the mathematical form of my b.c into the interface is Eb-Ea=0. where Eb:electric field for solid and Ea for fluid region. For this reason I am going to use the codedFixedValue b.c. Thus my question is: How can I use the E variable in system/Changedictionary/phi file in order to code the above equation in phi b.c .? Is the equation reader a solution .? if yes, how can I use it .? thanks in advance !!

 June 7, 2016, 06:01 #2 New Member   dklogo Join Date: May 2015 Posts: 10 Rep Power: 4 any suggestions ? Because the utility of codedFixedValue for coupling boundary conditions it is an essential issue I will try to be more specific with my problem. Firstly the multi-region case has two regions, solid and fluid(air) Lets take the variables phiA and phiD phiA is the electric potential for the fluid region and phiD is the electric potential for the solid region I want to built a coupling boundary condition with the form : phiA-phiD=0 the code for the fluid interface is : const scalarField&phiDPatchField = this->patch().lookupPatchField(“ phiD”); operator == (phiDPatchField); However when I am trying to compile the case the following error occurs: request for volScalarField phiD from objectRegistry air failed available objects of type volScalarField are 4 ( (rhoA|epsilon0) phiA magnEa rhoA which means that the solver denies to read the phiD variable because is created in the solid region . So my question is : How can I use/call a variable from a different region .? (here the phiD for air region)

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post shipman OpenFOAM Running, Solving & CFD 5 January 4, 2016 09:57 clo OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 33 September 26, 2012 04:04 Emre CFX 0 September 20, 2007 09:58 michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15 adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19

All times are GMT -4. The time now is 07:18.