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

dsmcFoam+: Space varying boundary condition

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 5, 2025, 23:27
Default dsmcFoam+: Space varying boundary condition
  #1
New Member
 
Han Guanghui
Join Date: Mar 2022
Posts: 2
Rep Power: 0
Haoshuizhiyu is on a distinguished road
Hello everyone! I am using Hystrath for rarefied gas simulation. There are two general boundary conditions in my DSMC simulation. When I use dsmcFreeStreamInflowPatch, the simulation can run.Then I want to use the nozzle plume boundary flow field as the boundary condition for DSMC simulation, which is spacing varing. Once I change gasFace boundryModel to dsmcFreeStreamInflowFieldPatch, there will be an error when running. The error description is
' Cannot find patchField entry for fairing
file:/test/0/boundaryNumberDensity N2.boundaryField from line 27 to line28
'.

Here is the boundary code I used:
boundariesDict
Code:
dsmcGeneralBoundaries
(
    boundary
    {
        generalBoundaryProperties
        {
        patchName                           far;
        }

        boundaryModel   dsmcFreeStreamInflowPatch;

        dsmcFreeStreamInflowPatchProperties
        {
            typeIds                   (N2 O2);
            velocity			     (-3053.4 0 0);
            translationalTemperature	     217.63;
            rotationalTemperature          217.63;
            vibrationalTemperature         217.63;
            numberDensities
            {
                N2            1.554e17;
                O2            3.886e16;
            };
        }
    }

    boundary
    {
        generalBoundaryProperties
        {
            patchName                           gasFace;
        }

        boundaryModel   dsmcFreeStreamInflowFieldPatch;

        dsmcFreeStreamInflowFieldPatchProperties
        {
            typeIds                   (N2 O2);
            velocity			     (-1053.4 0 0);
            translationalTemperature	     217.63;
            rotationalTemperature          217.63;
            vibrationalTemperature         217.63;
            numberDensities
            {
                N2            1.554e17;
                O2            3.886e16;
            };
        }
    }
);
boundaryNumberDensity_N2
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      boundaryNumberDensity_N2;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 -3 0 0 0 0 0];


internalField   uniform 0;

boundaryField
{
    gasFace
    {
        type            fixedValue;
        value           nonuniform List<scalar> 
8216 // number of cells in the boundary
(
1.55E+17
...
);
    }
}
boundaryT
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    location    "0";
    object      boundaryT;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 0 1 0 0 0]; 

internalField   uniform (0 0 0);

boundaryField
{
    gasFace
    {
        type            fixedValue;
        value           nonuniform List<vector> 
6082 // number of cells in the boundary
(
(	217.63	217.63	217.63	)
...
);
}
}
boundaryU
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    location    "0";
    object      boundaryU;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 -1 0 0 0 0];


internalField   uniform (0 0 0);

boundaryField
{
    gasFace
    {
        type            fixedValue;
        value           nonuniform List<vector> 
6082 // number of cells in the boundary
(
(	-2212.7	-2810.3	4.1803	)
...
);
}
}
Haoshuizhiyu is offline   Reply With Quote

Reply

Tags
dsmc, dsmcfoam, hystrath

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
implementing time varying boundary condition EricS OpenFOAM Running, Solving & CFD 2 May 5, 2022 04:43
Cyclic boundary condition in foam-extend 4.0 rellumeister OpenFOAM Pre-Processing 2 March 3, 2020 09:03
several fields modified by single boundary condition schröder OpenFOAM Programming & Development 3 April 21, 2015 06:09
Radiation interface hinca CFX 15 January 26, 2014 18:11
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 07:28


All times are GMT -4. The time now is 17:22.