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

use a boundary condition like internalField for just one volScalarField

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 16, 2022, 17:49
Default use a boundary condition like internalField for just one volScalarField
  #1
Member
 
sajad
Join Date: Aug 2013
Posts: 71
Rep Power: 13
seju is on a distinguished road
Hi dear foamer.
I wanna remove a boundary for just a field. for example I have 5 boundary condition and for energy Eq I want to use just 4 boundary condition and another Bc operate like internal face. do you have Idea about that? I change internalCoeffs and boundaryCoeffs but my matrix component changed.
HTML Code:
     TEqn.internalCoeffs().set(0,new Field<scalar>(0,pTraits<scalar>::zero));    TEqn.boundaryCoeffs().set(0,new Field<scalar>(0,pTraits<scalar>::zero));
can I create two object of fvmesh class which read different boundary directory and remove this BC in one of the boundary file?
seju is offline   Reply With Quote

Old   April 12, 2022, 18:29
Default
  #2
Member
 
sajad
Join Date: Aug 2013
Posts: 71
Rep Power: 13
seju is on a distinguished road
Quote:
Originally Posted by seju View Post
Hi dear foamer.
I wanna remove a boundary for just a field. for example I have 5 boundary condition and for energy Eq I want to use just 4 boundary condition and another Bc operate like internal face. do you have Idea about that? I change internalCoeffs and boundaryCoeffs but my matrix component changed.
HTML Code:
     TEqn.internalCoeffs().set(0,new Field<scalar>(0,pTraits<scalar>::zero));    TEqn.boundaryCoeffs().set(0,new Field<scalar>(0,pTraits<scalar>::zero));
can I create two object of fvmesh class which read different boundary directory and remove this BC in one of the boundary file?
Does anyone have an idea?
seju 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
Question about adaptive timestepping Guille1811 CFX 25 November 12, 2017 17:38
Centrifugal fan-reverse flow in outlet lesds to a mass in flow field xiexing CFX 3 March 29, 2017 10:00
Boundary condition cannot find volScalarField ChrisA OpenFOAM Programming & Development 1 March 18, 2014 17:17
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00


All times are GMT -4. The time now is 15:08.