CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   How conductivity is assigned in chtMultiRegion (https://www.cfd-online.com/Forums/openfoam-pre-processing/242481-how-conductivity-assigned-chtmultiregion.html)

ZeinabM April 23, 2022 14:11

How conductivity is assigned in chtMultiRegion
 
Hello all,
hope you're doing well :)
I am explaining my problem below and explaining how it's related to the title. Mainly I need to understand how conductivity is assigned in the chtmultiregion because I need to replicate it in my case with permittivity and electric potential.
I have a continuous field in two different regions; let's call it "ep" for electric potential, and I have two regions; solid, and fluid. Also, I have the permittivity "epsilon0" that has a different value in each region.

Code:


  Info<< "solving the electric potential "<< endl;
                        initRes1 = solve
                        (
                              fvm::laplacian(epsilon0,ep)
                        ).initialResidual();

so, as you can see epsilon0 is a dimensioned scalar that has different values in each region, and I need to find a way of assigning those two values. I think it's similar to the conductivity in the chtMultiregion, but I couldn't understand how it works. Thanks in advance.


All times are GMT -4. The time now is 20:57.