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

codedFixedValue b.c for multi-region cases

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 31, 2016, 16:02
Default codedFixedValue b.c for multi-region cases
  #1
New Member
 
dklogo
Join Date: May 2015
Posts: 11
Rep Power: 11
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, 07:01
Default
  #2
New Member
 
dklogo
Join Date: May 2015
Posts: 11
Rep Power: 11
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

Old   December 4, 2018, 22:27
Default Same Question
  #3
New Member
 
Arpan Sircar
Join Date: Mar 2017
Posts: 8
Rep Power: 9
ArpanS is on a distinguished road
Hi

I have exactly the same question as posted above. Did anyone find any resolution to this issue ?

Thanks
Arpan
ArpanS 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
Floating Point Error with kOmegaSST Turbulence Model shipman OpenFOAM Running, Solving & CFD 5 January 4, 2016 09:57
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 05:04
Rotating region of a centr. pump - Counter R wall Emre CFX 0 September 20, 2007 10:58
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 05:15
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 09:19


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