|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Join Date: May 2022
Posts: 29
Rep Power: 5 ![]() |
Hi foamers,
I have been struggling to extract a surface as a patch in an STL file in snappyHexMesh. I explain myself, I am studying a breakwater and I want to compute the force in specific locations in the crownwall which I import as an STL file (crownwall.stl). I am using the following code to compute the forces and I need to indicate a patch for the pressure integration : Code:
force1
{
type forces ;
functionObjectLibs ( "libforces.so" );
patches (SurfaceOfInterest);
rho rhoInf;
rhoInf 1;
CofR (523.5 15 30.693);
writeControl timeStep;
writeInterval 1;
pName p;
UName U;
log true;
Iif so I don't know how to use TopoSet, is there a template/model I can use as a basis ? I have attached the picture of the crownwall with the pink surfaces I want to create to use as a patch for the forces. It's just two squares. Thanks! |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,362
Rep Power: 33 ![]() ![]() |
Hi,
Just linking the original post, as it is usually not a good idea to duplicate threads: How to create a new patch in an STL file ? Regards, Yann |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using PengRobinsonGas EoS with sprayFoam | Jabo | OpenFOAM Running, Solving & CFD | 36 | July 16, 2024 04:52 |
| Custom Thermophysical Properties | wsmith02 | OpenFOAM | 4 | June 1, 2023 15:30 |
| steadyUniversalMRFFoam Tutorial fails in MixingPlane | HenrikJohansson | OpenFOAM Bugs | 0 | February 14, 2019 05:48 |
| Trouble compiling utilities using source-built OpenFOAM | Artur | OpenFOAM Programming & Development | 14 | October 29, 2013 11:59 |
| [swak4Foam] funkySetFields compilation error | tayo | OpenFOAM Community Contributions | 39 | December 3, 2012 06:18 |