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

Need help with modifying setPressure.H

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 5, 2013, 02:28
Default Need help with modifying setPressure.H
  #1
Senior Member
 
Join Date: Jul 2011
Posts: 120
Rep Power: 14
haze_1986 is on a distinguished road
Hi all, I am currently trying to develop a coupled solver. I am currently at the stage of coding the transfer of information between the 2 solvers. I am following the template setPressure.H due to the similarities.

Code:
{
    Info << "Setting " << endl;

    // interpolates the pressure from the fluid field to the
    // solid patches at the fluid-solid boundary
    scalarField solidPatchPressure =
        interpolatorFluidSolid.faceInterpolate
        (
            p.boundaryField()[fluidPatchID]
        );

    solidPatchPressure *= rhoFluid.value();

    // tforce is Reference for traction displacement BC
    tForce.pressure() = solidPatchPressure;

    // calculates total force from pressure
    vector totalPressureForce =
        sum
        (
            p.boundaryField()[fluidPatchID]*
            mesh.Sf().boundaryField()[fluidPatchID]
        );

     
    Info << "Total pressure force = " << totalPressureForce << endl;
}
Can anyone guide me on what has to be changed if I were to require the depth and velocity of shallowWaterFoam to be patched onto z(level) and velocity of interFoam?
haze_1986 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
Modifying the laplacian operator mlawson OpenFOAM Running, Solving & CFD 22 July 16, 2018 04:56
modifying radial distribution function ravindra FLUENT 2 September 2, 2014 14:03
Modifying FLUENT plots siw FLUENT 2 April 4, 2013 10:53
Modifying density update in fireFoam anfho OpenFOAM Programming & Development 3 March 22, 2011 03:02
Modifying Gambit DBS file Created from MixSim 2 gkennedy3 ANSYS Meshing & Geometry 0 August 7, 2009 09:32


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