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

boundary condition for B in a 2D simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 21, 2024, 09:24
Default boundary condition for B in a 2D simulation
  #1
New Member
 
Christoph Trier
Join Date: Mar 2024
Posts: 12
Rep Power: 2
Lorddrinkalot is on a distinguished road
Hey guys,

I am trying to Simulate a 2D Simulation of a Flow through a magnetic.


My Simulation geometry is in the x-z plane, and the magnetic field should face the y direction. How can I set it up? The boundary condition I have so far is not working.

Can someone help me with this problem? I can't find anything online.

My boundary condition: (they are not working the simulation is like with out B field)

B
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2212                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    object      B;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform (0 0.28 0);    //0.28

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           $internalField;
    }
    outlet
    {
        type            fixedValue;
        value           $internalField;
    }
    Wall_side_front
    {
        type            empty;
    }
	Wall_side_back
    {
        type            empty;
    }
    Wall_out
    {
        type            fixedValue;
        value           $internalField;
    }
	Wall_inside
    {
        type            fixedValue;
        value           $internalField;
    }



}


// ************************************************************************* //
Lorddrinkalot is offline   Reply With Quote

Reply

Tags
2d simulation, magnetic field, mhd problem


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
SU2 Supersonic Cascade Simulation: Inlet Boundary Condition Issues nirvananas314 SU2 4 March 15, 2024 09:13
Clarification Needed on Symmetry Boundary Condition in CFD Simulation Varada REEF3D 3 November 9, 2023 04:09
Wind tunnel flow simulation boundary condition issue charan3007 SU2 0 October 21, 2021 08:27
Table bounds warnings at: END OF TIME STEP CFXer CFX 4 July 16, 2020 23:44
Problem in setting Boundary Condition Madhatter92 CFX 12 January 12, 2016 04:39


All times are GMT -4. The time now is 23:40.