|
[Sponsors] |
How to create a 3D sinusoidal wave using funktSetFields |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 27, 2023, 20:47 |
How to create a 3D sinusoidal wave using funktSetFields
|
#1 |
Member
Niyas
Join Date: Apr 2013
Posts: 45
Rep Power: 13 |
Hi everyone,
I have a simple geometry of a 2D rectangular channel with sinusoidal wave set using the following funkySetFieldDict file: Code:
FoamFile { version 2.0; format ascii; root "/.automount/werner/Werner/bgschaid/bgschaid-foamStuff/DepositionTests"; case "neutralTest"; instance "system"; local ""; class dictionary; object funkySetFieldsDict; } expressions ( pressureset1 { field p; create 1; expression "10133"; valuePatches ( zminus ); dimension [1 -1 -2 0 0 0 0]; } pressureset2 { field p; expression "506625"; condition "(pos().x <= 0.006*sin(pos().y*50*2*3.1415926+50*0.25*3.1415926)+0.01) "; valuePatches ( zminus ); keepPatches 1; dimension [1 -1 -2 0 0 0 0]; } velocityset { field U; create 1; expression "vector(0,0,0)"; valuePatches ( zminus ); dimension [0 1 -1 0 0 0 0]; } temperatureset1 { field T; create 1; expression "300"; valuePatches ( zminus ); dimension [0 0 0 1 0 0 0]; } temperatureset2 { field T; expression "1800"; condition "(pos().x <= 0.006*sin(pos().y*50*2*3.1415926+50*0.25*3.1415926)+0.01) "; valuePatches ( zminus ); } ); It works smoothly. Now I want to create a 3D rectangular channel and set the funkySetFieldsDict to create 3D sinusoidal wave. Anyone knows how to do that ?
__________________
Regards, Niyas |
|
Tags |
funkysetfieldsdict, openfoam 6, setfielddi |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF generation for pulsatile flow from sinusoidal wave | harry93 | Fluent UDF and Scheme Programming | 4 | July 14, 2021 03:28 |
[waves2Foam] NWT wave generation problem | Alex song | OpenFOAM Community Contributions | 0 | April 24, 2016 05:54 |
Create rectified square wave inlet flow profile | mhw2015 | Fluent UDF and Scheme Programming | 0 | November 18, 2015 13:30 |
Error in UDF for sinusoidal wave propagation at channel wall | engrmansoor2534 | Fluent UDF and Scheme Programming | 0 | August 21, 2015 05:18 |
sinusoidal wave creation | abhaygudi | ANSYS Meshing & Geometry | 1 | September 20, 2013 12:04 |