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

codedFixedValue b.c for multi-region cases

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 31, 2016, 15:02
Default codedFixedValue b.c for multi-region cases
  #1
New Member
 
dklogo
Join Date: May 2015
Posts: 10
Rep Power: 3
logo is on a distinguished road
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 !!
logo is offline   Reply With Quote

Old   June 7, 2016, 06:01
Default
  #2
New Member
 
dklogo
Join Date: May 2015
Posts: 10
Rep Power: 3
logo is on a distinguished road
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<volScalarField,scalar>(“ 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)
logo is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Floating Point Error with kOmegaSST Turbulence Model shipman OpenFOAM Running, Solving & CFD 5 January 4, 2016 09:57
Using starToFoam clo OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 33 September 26, 2012 04:04
Rotating region of a centr. pump - Counter R wall Emre CFX 0 September 20, 2007 09:58
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19


All times are GMT -4. The time now is 06:31.