CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

[OpenFOAM] mapFieldsPar - Different number of subdomains in source and target cases

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 14, 2023, 11:02
Default [OpenFOAM] mapFieldsPar - Different number of subdomains in source and target cases
  #1
New Member
 
Nishant
Join Date: Feb 2011
Posts: 4
Rep Power: 15
nishant.kumar is on a distinguished road
Hello FOAMers,

I am using OpenFOAM v9.

I am trying to use the mapFieldsPar utility to map fields from a source case to a target case. The target domain is a subset of the source domain, with the bottom patch coinciding as shown in the sketch:



Code:
mpirun -n $cores mapFieldsPar -parallel \
    -mapMethod cellVolumeWeight \
    -sourceTime $startTime \
    $mapFieldsSource > log.mapFieldsPar 2>&1
I have the source case decomposed into 180 subdomains and want to run the target case with a lower number of subdomains (e.g. 24) given the small size of the computational domain.

I can't arrive at making this work as mapFieldsPar tries to match the number of subdomains in the target case with the numberOfSubdomains specification in the decomposeParDict of the source case and throws an error if they don't match. Is there a way to make this work?

PS: I tried the serial utility mapFields which seems to work with dissimilar decomposition of the source and target cases but it is extremely slow.
nishant.kumar is offline   Reply With Quote

Reply

Tags
decomposed mesh, decomposepar, map fields, parallel, preprocessing


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
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 36 July 16, 2024 04:52
[swak4Foam] swak4foam for OpenFOAM 4.0 mnikku OpenFOAM Community Contributions 80 May 17, 2022 09:06
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 19:13
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 10:07
[OpenFOAM.org] OF2.3.1 + OS13.2 - Trying to use the dummy Pstream library aylalisa OpenFOAM Installation 23 June 15, 2015 15:49


All times are GMT -4. The time now is 11:12.